Commit 38567a1143f759e6bd5eafaccc451f932d0daac1

Authored by Jürgen Knödlseder
1 parent 94914d9f

Correct syntax error and adjust to new calibration database path.

Showing 1 changed file with 4 additions and 4 deletions
scripts/cssens.py
@@ -57,7 +57,7 @@ class cssens(GApplication): @@ -57,7 +57,7 @@ class cssens(GApplication):
57 """ 57 """
58 # Set name 58 # Set name
59 self.name = "cssens" 59 self.name = "cssens"
60 - self.version = "0.3.0" 60 + self.version = "0.4.0"
61 61
62 # Make sure that parfile exists 62 # Make sure that parfile exists
63 file = self.parfile() 63 file = self.parfile()
@@ -106,11 +106,11 @@ class cssens(GApplication): @@ -106,11 +106,11 @@ class cssens(GApplication):
106 # Create default parfile 106 # Create default parfile
107 pars = GApplicationPars() 107 pars = GApplicationPars()
108 pars.append(GApplicationPar("outfile","f","h","sensitivity.dat","","","Output file name")) 108 pars.append(GApplicationPar("outfile","f","h","sensitivity.dat","","","Output file name"))
109 - pars.append(GApplicationPar("caldb","s","a","$GAMMALIB/share/caldb/cta","","","Calibration database")) 109 + pars.append(GApplicationPar("caldb","s","a","$CTOOLS/share/caldb/data/cta/dummy","","","Calibration database"))
110 pars.append(GApplicationPar("irf","s","a","cta_dummy_irf","","","Instrument response function")) 110 pars.append(GApplicationPar("irf","s","a","cta_dummy_irf","","","Instrument response function"))
111 pars.append(GApplicationPar("type","s","a","point","","","Source model type (point/gauss/shell/disk)")) 111 pars.append(GApplicationPar("type","s","a","point","","","Source model type (point/gauss/shell/disk)"))
112 pars.append(GApplicationPar("offset","r","a","0.0","0.0","","Source offset angle (deg)")) 112 pars.append(GApplicationPar("offset","r","a","0.0","0.0","","Source offset angle (deg)"))
113 - pars.append(GApplicationPar("bkg","s","a","$GAMMALIB/share/models/bkg_dummy.txt","","","Background model file function (none=power law for E)")) 113 + pars.append(GApplicationPar("bkg","s","a","$CTOOLS/share/models/bkg_dummy.txt","","","Background model file function (none=power law for E)"))
114 pars.append(GApplicationPar("duration","r","a","180000.0","","","Effective exposure time (s)")) 114 pars.append(GApplicationPar("duration","r","a","180000.0","","","Effective exposure time (s)"))
115 pars.append(GApplicationPar("rad","r","a","5.0","","","Radius of ROI (deg)")) 115 pars.append(GApplicationPar("rad","r","a","5.0","","","Radius of ROI (deg)"))
116 pars.append(GApplicationPar("enumbins","i","h","0","","","Number of energy bins (0=unbinned)")) 116 pars.append(GApplicationPar("enumbins","i","h","0","","","Number of energy bins (0=unbinned)"))
@@ -333,7 +333,7 @@ class cssens(GApplication): @@ -333,7 +333,7 @@ class cssens(GApplication):
333 location.lb_deg(l, b) 333 location.lb_deg(l, b)
334 334
335 # Set source spectrum 335 # Set source spectrum
336 - spectrum = GModelSpectralPlaw(flux*5.7e-16, index, GEnergy(0.3, "TeV") 336 + spectrum = GModelSpectralPlaw(flux*5.7e-16, index, GEnergy(0.3, "TeV"))
337 if fitidx: 337 if fitidx:
338 spectrum["Index"].free() 338 spectrum["Index"].free()
339 else: 339 else: