Commit 344047663c73542451d475ed5e7426caf79c96d8
1 parent
91abf1bd
fixed pointing direction bug in unbinned analysis
Showing
1 changed file
with
2 additions
and
1 deletions
cscripts/csscs.py
| ... | ... | @@ -411,6 +411,7 @@ class csscs(ctools.csobservation): |
| 411 | 411 | |
| 412 | 412 | # Filter event list according to ROI and user energy range |
| 413 | 413 | select = ctools.ctselect(obs) |
| 414 | + select['usepnt'] = False | |
| 414 | 415 | select['ra'] = ra |
| 415 | 416 | select['dec'] = dec |
| 416 | 417 | select['rad'] = rad |
| ... | ... | @@ -502,7 +503,7 @@ class csscs(ctools.csobservation): |
| 502 | 503 | masked_obs = self._mask_observations(ra,dec,self['rad'].real()) |
| 503 | 504 | |
| 504 | 505 | # Set up likelihood analysis |
| 505 | - self._log_header3(gammalib.NORMAL, 'Performing fit in energy bin') | |
| 506 | + self._log_header3(gammalib.NORMAL, 'Performing fit in region') | |
| 506 | 507 | like = ctools.ctlike(masked_obs) |
| 507 | 508 | like['edisp'] = self['edisp'].boolean() |
| 508 | 509 | like['nthreads'] = 1 # Avoids OpenMP conflict | ... | ... |