Commit e26b995e22bd882dffe6dfcc8a3c23a06f1d09dc

Authored by Jürgen Knödlseder
1 parent 2e298d94

Add ebinalg parameter to ctbin usage.

The ebinalg parameter is no longer hidden, hence it has not to be specified explicitly in the scripts using ctbon.
examples/make_binned_analysis.py
... ... @@ -96,6 +96,7 @@ def pipeline_v1():
96 96 bin.logFileOpen() # We need this to explicitely open the log file in Python mode
97 97 bin["evfile"].filename(events_name)
98 98 bin["outfile"].filename(cntmap_name)
  99 + bin["ebinalg"].string("LOG")
99 100 bin["emin"].real(emin)
100 101 bin["emax"].real(emax)
101 102 bin["enumbins"].integer(enumbins)
... ... @@ -192,6 +193,7 @@ def pipeline_v2():
192 193  
193 194 # Bin events into counts map
194 195 bin = ctbin(sim.obs())
  196 + bin["ebinalg"].string("LOG")
195 197 bin["emin"].real(emin)
196 198 bin["emax"].real(emax)
197 199 bin["enumbins"].integer(enumbins)
... ...
scripts/obsutils.py
... ... @@ -77,6 +77,7 @@ def sim(obs, log=False, debug=False, seed=0, nbins=0, binsz=0.05, npix=200):
77 77  
78 78 # Allocate ctbin application and set parameters
79 79 bin = ctbin(sim.obs())
  80 + bin["ebinalg"].string("LOG")
80 81 bin["emin"].real(emin)
81 82 bin["emax"].real(emax)
82 83 bin["enumbins"].integer(nbins)
... ...