Commit e26b995e22bd882dffe6dfcc8a3c23a06f1d09dc
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.
Showing
2 changed files
with
3 additions
and
0 deletions
examples/make_binned_analysis.py
| @@ -96,6 +96,7 @@ def pipeline_v1(): | @@ -96,6 +96,7 @@ def pipeline_v1(): | ||
| 96 | bin.logFileOpen() # We need this to explicitely open the log file in Python mode | 96 | bin.logFileOpen() # We need this to explicitely open the log file in Python mode |
| 97 | bin["evfile"].filename(events_name) | 97 | bin["evfile"].filename(events_name) |
| 98 | bin["outfile"].filename(cntmap_name) | 98 | bin["outfile"].filename(cntmap_name) |
| 99 | + bin["ebinalg"].string("LOG") | ||
| 99 | bin["emin"].real(emin) | 100 | bin["emin"].real(emin) |
| 100 | bin["emax"].real(emax) | 101 | bin["emax"].real(emax) |
| 101 | bin["enumbins"].integer(enumbins) | 102 | bin["enumbins"].integer(enumbins) |
| @@ -192,6 +193,7 @@ def pipeline_v2(): | @@ -192,6 +193,7 @@ def pipeline_v2(): | ||
| 192 | 193 | ||
| 193 | # Bin events into counts map | 194 | # Bin events into counts map |
| 194 | bin = ctbin(sim.obs()) | 195 | bin = ctbin(sim.obs()) |
| 196 | + bin["ebinalg"].string("LOG") | ||
| 195 | bin["emin"].real(emin) | 197 | bin["emin"].real(emin) |
| 196 | bin["emax"].real(emax) | 198 | bin["emax"].real(emax) |
| 197 | bin["enumbins"].integer(enumbins) | 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,6 +77,7 @@ def sim(obs, log=False, debug=False, seed=0, nbins=0, binsz=0.05, npix=200): | ||
| 77 | 77 | ||
| 78 | # Allocate ctbin application and set parameters | 78 | # Allocate ctbin application and set parameters |
| 79 | bin = ctbin(sim.obs()) | 79 | bin = ctbin(sim.obs()) |
| 80 | + bin["ebinalg"].string("LOG") | ||
| 80 | bin["emin"].real(emin) | 81 | bin["emin"].real(emin) |
| 81 | bin["emax"].real(emax) | 82 | bin["emax"].real(emax) |
| 82 | bin["enumbins"].integer(nbins) | 83 | bin["enumbins"].integer(nbins) |