Commit 1ff3a49f30cc92fd113cfa77d33b8287cb72a5ea
1 parent
c83d926f
Adapt csphagen test to new internal etrue binning
Showing
1 changed file
with
4 additions
and
4 deletions
test/test_csphagen.py
| ... | ... | @@ -339,7 +339,7 @@ class Test(test): |
| 339 | 339 | # Return |
| 340 | 340 | return |
| 341 | 341 | |
| 342 | - def _check_rmf(self, filename, bins): | |
| 342 | + def _check_rmf(self, filename, bins, etruebins=91): | |
| 343 | 343 | """ |
| 344 | 344 | Check RMF file |
| 345 | 345 | """ |
| ... | ... | @@ -363,8 +363,8 @@ class Test(test): |
| 363 | 363 | # Check FITS table structure |
| 364 | 364 | self.test_value(table.ncols(), len(cols), |
| 365 | 365 | 'Check for %d columns in RMF table' % len(cols)) |
| 366 | - self.test_value(table.nrows(), bins, | |
| 367 | - 'Check for %d rows in RMF table' % bins) | |
| 366 | + self.test_value(table.nrows(), etruebins, | |
| 367 | + 'Check for %d rows in RMF table' % etruebins) | |
| 368 | 368 | for col in cols: |
| 369 | 369 | self.test_assert(table.contains(col), |
| 370 | 370 | 'FITS file contains "' + col + '" column') |
| ... | ... | @@ -386,7 +386,7 @@ class Test(test): |
| 386 | 386 | # OGIP files |
| 387 | 387 | self._check_pha(filenameroot + '_pha_on.fits', bins) |
| 388 | 388 | self._check_pha(filenameroot + '_pha_off.fits', bins) |
| 389 | - self._check_arf(filenameroot + '_arf.fits', bins) | |
| 389 | + self._check_arf(filenameroot + '_arf.fits', 91) | |
| 390 | 390 | self._check_rmf(filenameroot + '_rmf.fits', bins) |
| 391 | 391 | |
| 392 | 392 | # Optionally check for regions | ... | ... |