Commit 7e3dfb73fda72c3d2daf7e65354f5698d9d3a039
1 parent
e0aa6658
added method parameter to get it running
Showing
1 changed file
with
6 additions
and
2 deletions
test/test_csphasecrv.py
| ... | ... | @@ -75,7 +75,7 @@ class Test(test): |
| 75 | 75 | cmd = csphasecrv+' inobs="'+self._phased_events+'"'+ \ |
| 76 | 76 | ' inmodel="'+self._model+'" srcname="Crab"'+ \ |
| 77 | 77 | ' caldb="'+self._caldb+'" irf="'+self._irf+'"'+ \ |
| 78 | - ' phbinalg="LIN" phbins=5'+ \ | |
| 78 | + ' phbinalg="LIN" phbins=5 method="CUBE"'+ \ | |
| 79 | 79 | ' enumbins=0 emin=0.1 emax=100.0'+ \ |
| 80 | 80 | ' outfile="csphasecrv_cmd1.fits"'+ \ |
| 81 | 81 | ' logfile="csphasecrv_cmd1.log" chatter=1' |
| ... | ... | @@ -95,7 +95,7 @@ class Test(test): |
| 95 | 95 | cmd = csphasecrv+' inobs="events_that_do_not_exist.fits"'+ \ |
| 96 | 96 | ' inmodel="'+self._model+'" srcname="Crab"'+ \ |
| 97 | 97 | ' caldb="'+self._caldb+'" irf="'+self._irf+'"'+ \ |
| 98 | - ' phbinalg="LIN" phbins=5'+ \ | |
| 98 | + ' phbinalg="LIN" phbins=5 method="CUBE"'+ \ | |
| 99 | 99 | ' enumbins=0 emin=0.1 emax=100.0'+ \ |
| 100 | 100 | ' outfile="csphasecrv_cmd2.fits"'+ \ |
| 101 | 101 | ' logfile="csphasecrv_cmd2.log" debug=yes chatter=1' |
| ... | ... | @@ -124,6 +124,7 @@ class Test(test): |
| 124 | 124 | pcrv['irf'] = self._irf |
| 125 | 125 | pcrv['phbinalg'] = 'LIN' |
| 126 | 126 | pcrv['phbins'] = 5 |
| 127 | + pcrv['method'] = 'CUBE' | |
| 127 | 128 | pcrv['enumbins'] = 0 |
| 128 | 129 | pcrv['emin'] = 0.1 |
| 129 | 130 | pcrv['emax'] = 100.0 |
| ... | ... | @@ -160,6 +161,7 @@ class Test(test): |
| 160 | 161 | pcrv['irf'] = self._irf |
| 161 | 162 | pcrv['phbinalg'] = 'FILE' |
| 162 | 163 | pcrv['phbinfile'] = 'csphasecrv_py2.dat' |
| 164 | + pcrv['method'] = 'CUBE' | |
| 163 | 165 | pcrv['enumbins'] = 0 |
| 164 | 166 | pcrv['emin'] = 0.1 |
| 165 | 167 | pcrv['emax'] = 100.0 |
| ... | ... | @@ -190,6 +192,7 @@ class Test(test): |
| 190 | 192 | pcrv['irf'] = self._irf |
| 191 | 193 | pcrv['phbinalg'] = 'LIN' |
| 192 | 194 | pcrv['phbins'] = 5 |
| 195 | + pcrv['method'] = 'CUBE' | |
| 193 | 196 | pcrv['enumbins'] = 0 |
| 194 | 197 | pcrv['emin'] = 0.1 |
| 195 | 198 | pcrv['emax'] = 100.0 |
| ... | ... | @@ -213,6 +216,7 @@ class Test(test): |
| 213 | 216 | pcrv['irf'] = self._irf |
| 214 | 217 | pcrv['phbinalg'] = 'LIN' |
| 215 | 218 | pcrv['phbins'] = 2 |
| 219 | + pcrv['method'] = 'CUBE' | |
| 216 | 220 | pcrv['emin'] = 0.1 |
| 217 | 221 | pcrv['emax'] = 100.0 |
| 218 | 222 | pcrv['enumbins'] = 10 | ... | ... |