Commit d6fb8eb4470d8aef4ca7b71f897cf378fc3dd656

Authored by Jürgen Knödlseder
1 parent 96842f77

Test show_pha.py script with PHA file w/o energy information

cscripts/Makefile.am
@@ -144,6 +144,7 @@ testdata = $(top_srcdir)/test/data/crab.xml \ @@ -144,6 +144,7 @@ testdata = $(top_srcdir)/test/data/crab.xml \
144 $(top_srcdir)/test/data/workflow.xml \ 144 $(top_srcdir)/test/data/workflow.xml \
145 $(top_srcdir)/test/data/butterfly.txt \ 145 $(top_srcdir)/test/data/butterfly.txt \
146 $(top_srcdir)/test/data/pha.fits \ 146 $(top_srcdir)/test/data/pha.fits \
  147 + $(top_srcdir)/test/data/pha_channels.fits \
147 $(top_srcdir)/test/data/pull.dat \ 148 $(top_srcdir)/test/data/pull.dat \
148 $(top_srcdir)/test/data/sensitivity.dat \ 149 $(top_srcdir)/test/data/sensitivity.dat \
149 $(top_srcdir)/test/data/spectrum.fits \ 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,7 +300,13 @@ class Test(gammalib.GPythonTestSuite):
300 Test show_pha 300 Test show_pha
301 """ 301 """
302 # Set arguments 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 # Execute script 311 # Execute script
306 self._execute_python('show_pha', args=args) 312 self._execute_python('show_pha', args=args)