Commit 413461b4c744c4c264c50dcff7512880fee08d9b
1 parent
0e61913d
Add energy dispersion to ctobssim.
Showing
1 changed file
with
1 additions
and
0 deletions
pyext/ctools/obsutils.py
| @@ -46,6 +46,7 @@ def sim(obs, log=False, debug=False, edisp=False, seed=0, nbins=0, | @@ -46,6 +46,7 @@ def sim(obs, log=False, debug=False, edisp=False, seed=0, nbins=0, | ||
| 46 | # Allocate ctobssim application and set parameters | 46 | # Allocate ctobssim application and set parameters |
| 47 | sim = ctools.ctobssim(obs) | 47 | sim = ctools.ctobssim(obs) |
| 48 | sim["seed"].integer(seed) | 48 | sim["seed"].integer(seed) |
| 49 | + sim["edisp"].boolean(edisp) | ||
| 49 | 50 | ||
| 50 | # Optionally open the log file | 51 | # Optionally open the log file |
| 51 | if log: | 52 | if log: |