From c621f1138e3ff902eb1d734966a1082ee9285dff Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 8 Feb 2016 10:59:11 +0100 Subject: [PATCH] Improved error handling and fixed some bugs --- cscripts/csfindobs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cscripts/csfindobs.py b/cscripts/csfindobs.py index 62f9759..de7c52d 100755 --- a/cscripts/csfindobs.py +++ b/cscripts/csfindobs.py @@ -123,6 +123,9 @@ class csfindobs(ctools.cscript): # Intiialise flag if spatial selection is required self.select_radec = True + # Initialise invalid radius + self.m_radius = 0.0 + # Check for vailidity of spatial parameters if self["ra"].is_valid() and self["dec"].is_valid() and self["rad"].is_valid(): @@ -176,7 +179,7 @@ class csfindobs(ctools.cscript): if self.m_obs_index == "": raise RuntimeError("FITS data store \""+self.m_prodname+"\" not available. Run csiactdata to get a list of available storage names") if not gammalib.is_fits(self.m_obs_index+"[OBS_INDEX]"): - raise RuntimeError("Observation index file \""+self.m_obs_index+"[OBS_INDEX]\" for FITS data store \""+self.m_prodname+"\" not available. Check your master index file or run csdsinfo to get a list of available storage names.") + raise RuntimeError("Observation index file \""+self.m_obs_index+"[OBS_INDEX]\" for FITS data store \""+self.m_prodname+"\" not available. Check your master index file or run csiactdata to get a list of available storage names.") # Set other members self.m_log = False # Logging in client tools @@ -190,7 +193,7 @@ class csfindobs(ctools.cscript): """ Return OBS IDs """ - + # Return return self.runs -- libgit2 0.21.4