From 1b010f6e3d2a274228ac4bb661a0678d80c4b487 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Mon, 26 Sep 2016 18:04:25 +0200 Subject: [PATCH] Complete cttsmap tests after last merge --- test/test_cttsmap.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/test_cttsmap.py b/test/test_cttsmap.py index 864490f..cf4d1bd 100755 --- a/test/test_cttsmap.py +++ b/test/test_cttsmap.py @@ -97,21 +97,24 @@ class Test(test): # Check if execution failed self.test_assert(self._execute(cmd) != 0, 'Check invalid input file when executed from command line') - + # Setup cttsmap command cmd = cttsmap+' inobs="'+self._events+'"'+ \ ' inmodel="'+self._model+'" srcname="Crab"'+ \ ' caldb="'+self._caldb+'" irf="'+self._irf+'"'+ \ ' errors=yes'+ \ - ' outmap="cttsmap_cmd1.fits"'+ \ - ' nxpix=5 nypix=5 binsz=0.02'+ \ + ' outmap="cttsmap_cmd3.fits"'+ \ + ' nxpix=3 nypix=3 binsz=0.02'+ \ ' coordsys="CEL" proj="CAR" xref=83.63 yref=22.01'+ \ - ' logfile="cttsmap_cmd1.log" chatter=1' + ' logfile="cttsmap_cmd3.log" chatter=1' # Check if execution was successful self.test_assert(self._execute(cmd) == 0, 'Check successful execution from command line') + # Check result file + self._check_result_file('cttsmap_cmd3.fits') + # Setup cttsmap --help option cmd = cttsmap+' --help' @@ -281,7 +284,7 @@ class Test(test): nmaps = 1 else: nmaps = 0 - + # Check dimensions self.test_value(tsmap.nmaps(), nmaps, 'Check number of maps') self.test_value(tsmap.nx(), nx, 'Check for number of X pixels') -- libgit2 0.21.4