Commit d6fb8eb4470d8aef4ca7b71f897cf378fc3dd656
1 parent
96842f77
Test show_pha.py script with PHA file w/o energy information
Showing
3 changed files
with
8 additions
and
1 deletions
cscripts/Makefile.am
| ... | ... | @@ -144,6 +144,7 @@ testdata = $(top_srcdir)/test/data/crab.xml \ |
| 144 | 144 | $(top_srcdir)/test/data/workflow.xml \ |
| 145 | 145 | $(top_srcdir)/test/data/butterfly.txt \ |
| 146 | 146 | $(top_srcdir)/test/data/pha.fits \ |
| 147 | + $(top_srcdir)/test/data/pha_channels.fits \ | |
| 147 | 148 | $(top_srcdir)/test/data/pull.dat \ |
| 148 | 149 | $(top_srcdir)/test/data/sensitivity.dat \ |
| 149 | 150 | $(top_srcdir)/test/data/spectrum.fits \ | ... | ... |
test/data/pha_channels.fits
0 → 100644
No preview for this file type
test/test_examples.py.in
| ... | ... | @@ -300,7 +300,13 @@ class Test(gammalib.GPythonTestSuite): |
| 300 | 300 | Test show_pha |
| 301 | 301 | """ |
| 302 | 302 | # Set arguments |
| 303 | - args = '-p example_show_pha.eps %s/pha.fits' % self._datadir | |
| 303 | + args = '-p example_show_pha1.eps %s/pha.fits' % self._datadir | |
| 304 | + | |
| 305 | + # Execute script | |
| 306 | + self._execute_python('show_pha', args=args) | |
| 307 | + | |
| 308 | + # Set arguments | |
| 309 | + args = '-p example_show_pha2.eps %s/pha_channels.fits' % self._datadir | |
| 304 | 310 | |
| 305 | 311 | # Execute script |
| 306 | 312 | self._execute_python('show_pha', args=args) | ... | ... |