Commit e3a962c339a936f1bb075c5b2ce7356b8cf1d058

Authored by Michael Mayer
1 parent 64073a77

applied new possibility to pass undefined parameters to ctselect

scripts/Makefile.am
... ... @@ -5,7 +5,7 @@ binscripts = cta_kb_bkgrates.py cta_root2irf.py cta_make_nodes.py \
5 5 tsmerge.py
6 6  
7 7 # Scripts to be distributed in pythondir
8   -pythonscripts = cspull.py cssens.py cstsdist.py cscaldb.py csresmap.py csspec.py\
  8 +pythonscripts = cspull.py cssens.py cstsdist.py cscaldb.py csresmap.py csspec.py csplotspec.py\
9 9 lsmodel.py \
10 10 obsutils.py
11 11  
... ...
scripts/csspec.py
... ... @@ -268,11 +268,11 @@ class csspec(ctools.cscript):
268 268 select = ctools.ctselect(self.obs)
269 269 select["emin"].real(emin.TeV())
270 270 select["emax"].real(emax.TeV())
271   - select["tmin"].real(0.0)
272   - select["tmax"].real(0.0)
273   - select["rad"].real(0.0)
274   - select["ra"].real(0.0)
275   - select["dec"].real(-1.0)
  271 + select["tmin"].value("UNDEFINED")
  272 + select["tmax"].value("UNDEFINED")
  273 + select["rad"].value("UNDEFINED")
  274 + select["ra"].value("UNDEFINED")
  275 + select["dec"].value("UNDEFINED")
276 276 select.run()
277 277  
278 278 # likelihood
... ...