Commit 167a6787b9a8c7de140c8580f633f3d78b71875d
1 parent
d7578fdc
Remove tscalc keyword from fit() function.
The tscalc parameter has been removed from ctlike.
Showing
1 changed file
with
1 additions
and
5 deletions
pyext/ctools/obsutils.py
| @@ -125,7 +125,7 @@ def sim(obs, log=False, debug=False, edisp=False, seed=0, nbins=0, | @@ -125,7 +125,7 @@ def sim(obs, log=False, debug=False, edisp=False, seed=0, nbins=0, | ||
| 125 | # ================ # | 125 | # ================ # |
| 126 | # Fit observations # | 126 | # Fit observations # |
| 127 | # ================ # | 127 | # ================ # |
| 128 | -def fit(obs, log=False, debug=False, edisp=False, tscalc=False): | 128 | +def fit(obs, log=False, debug=False, edisp=False): |
| 129 | """ | 129 | """ |
| 130 | Perform maximum likelihood fitting of observations in the container. | 130 | Perform maximum likelihood fitting of observations in the container. |
| 131 | 131 | ||
| @@ -147,10 +147,6 @@ def fit(obs, log=False, debug=False, edisp=False, tscalc=False): | @@ -147,10 +147,6 @@ def fit(obs, log=False, debug=False, edisp=False, tscalc=False): | ||
| 147 | if debug: | 147 | if debug: |
| 148 | like["debug"].boolean(True) | 148 | like["debug"].boolean(True) |
| 149 | 149 | ||
| 150 | - # Optionally turn on TS calculation | ||
| 151 | - if tscalc: | ||
| 152 | - like["tscalc"].boolean(True) | ||
| 153 | - | ||
| 154 | # Optionally apply energy dispersion | 150 | # Optionally apply energy dispersion |
| 155 | like["edisp"].boolean(edisp) | 151 | like["edisp"].boolean(edisp) |
| 156 | 152 |