From d6fb8eb4470d8aef4ca7b71f897cf378fc3dd656 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 3 Aug 2016 00:57:33 +0200 Subject: [PATCH] Test show_pha.py script with PHA file w/o energy information --- cscripts/Makefile.am | 1 + test/data/pha_channels.fits | Bin 0 -> 8640 bytes test/test_examples.py.in | 8 +++++++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test/data/pha_channels.fits diff --git a/cscripts/Makefile.am b/cscripts/Makefile.am index 5a6c64c..30d3702 100644 --- a/cscripts/Makefile.am +++ b/cscripts/Makefile.am @@ -144,6 +144,7 @@ testdata = $(top_srcdir)/test/data/crab.xml \ $(top_srcdir)/test/data/workflow.xml \ $(top_srcdir)/test/data/butterfly.txt \ $(top_srcdir)/test/data/pha.fits \ + $(top_srcdir)/test/data/pha_channels.fits \ $(top_srcdir)/test/data/pull.dat \ $(top_srcdir)/test/data/sensitivity.dat \ $(top_srcdir)/test/data/spectrum.fits \ diff --git a/test/data/pha_channels.fits b/test/data/pha_channels.fits new file mode 100644 index 0000000..ef3b2c9 Binary files /dev/null and b/test/data/pha_channels.fits differ diff --git a/test/test_examples.py.in b/test/test_examples.py.in index d39aff9..b6454bf 100755 --- a/test/test_examples.py.in +++ b/test/test_examples.py.in @@ -300,7 +300,13 @@ class Test(gammalib.GPythonTestSuite): Test show_pha """ # Set arguments - args = '-p example_show_pha.eps %s/pha.fits' % self._datadir + args = '-p example_show_pha1.eps %s/pha.fits' % self._datadir + + # Execute script + self._execute_python('show_pha', args=args) + + # Set arguments + args = '-p example_show_pha2.eps %s/pha_channels.fits' % self._datadir # Execute script self._execute_python('show_pha', args=args) -- libgit2 0.21.4