Commit 35f771204b78abe715891ce86970d8df9605bb2d
1 parent
10fc4e4d
Correct chatter setting.
Showing
1 changed file
with
4 additions
and
4 deletions
pyext/ctools/obsutils.py
| ... | ... | @@ -57,7 +57,7 @@ def sim(obs, log=False, debug=False, chatter=2, edisp=False, seed=0, nbins=0, |
| 57 | 57 | sim["debug"].boolean(True) |
| 58 | 58 | |
| 59 | 59 | # Set chatter level |
| 60 | - sim["chatter"].chatter = chatter | |
| 60 | + sim["chatter"].integer(chatter) | |
| 61 | 61 | |
| 62 | 62 | # Run ctobssim application. This will loop over all observations in the |
| 63 | 63 | # container and simulation the events for each observation. Note that |
| ... | ... | @@ -105,7 +105,7 @@ def sim(obs, log=False, debug=False, chatter=2, edisp=False, seed=0, nbins=0, |
| 105 | 105 | bin["debug"].boolean(True) |
| 106 | 106 | |
| 107 | 107 | # Set chatter level |
| 108 | - bin["chatter"].chatter = chatter | |
| 108 | + bin["chatter"].integer(chatter) | |
| 109 | 109 | |
| 110 | 110 | # Run ctbin application. This will loop over all observations in |
| 111 | 111 | # the container and bin the events in counts maps |
| ... | ... | @@ -157,7 +157,7 @@ def fit(obs, log=False, debug=False, chatter=2, edisp=False): |
| 157 | 157 | like["debug"].boolean(True) |
| 158 | 158 | |
| 159 | 159 | # Set chatter level |
| 160 | - like["chatter"].chatter = chatter | |
| 160 | + like["chatter"].integer(chatter) | |
| 161 | 161 | |
| 162 | 162 | # Optionally apply energy dispersion |
| 163 | 163 | like["edisp"].boolean(edisp) |
| ... | ... | @@ -200,7 +200,7 @@ def cterror(obs, srcname, log=False, debug=False, chatter=2): |
| 200 | 200 | error["debug"].boolean(True) |
| 201 | 201 | |
| 202 | 202 | # Set chatter level |
| 203 | - error["chatter"].chatter = chatter | |
| 203 | + error["chatter"].integer(chatter) | |
| 204 | 204 | |
| 205 | 205 | # Run cterror application. |
| 206 | 206 | error.run() | ... | ... |