From 7459a657f4ab82bac4bc555b8353383f83ed46f2 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sun, 24 May 2015 00:39:05 +0200 Subject: [PATCH] Don't pass -1.0 as ra and dec to ctselect, use UNDEF instead. --- pyext/ctools/obsutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyext/ctools/obsutils.py b/pyext/ctools/obsutils.py index 1cc6d03..3a3b3b7 100755 --- a/pyext/ctools/obsutils.py +++ b/pyext/ctools/obsutils.py @@ -584,9 +584,9 @@ def spectrum(obs, source, ebounds): # Clone observations and reset energy thresholds select = ctools.ctselect(obs) - select["ra"].real(-1.0) - select["dec"].real(-1.0) - select["rad"].real(-1.0) + select["ra"].value("UNDEF") + select["dec"].value("UNDEF") + select["rad"].value("UNDEF") select["tmin"].real(0.0) select["tmax"].real(0.0) select["emin"].real(ebounds.emin(i).TeV()) -- libgit2 0.21.4