From ecddae1eb06549c37af940ef36a2df425d1cad22 Mon Sep 17 00:00:00 2001 From: jlenain Date: Tue, 12 Sep 2017 09:04:30 +0200 Subject: [PATCH] Fixed parsing of 'None' in list of sources --- flaapluc/automaticLightCurve.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flaapluc/automaticLightCurve.py b/flaapluc/automaticLightCurve.py index b927ed8..7d8841b 100755 --- a/flaapluc/automaticLightCurve.py +++ b/flaapluc/automaticLightCurve.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Time-stamp: "2017-08-03 17:54:54 jlenain" +# Time-stamp: "2017-09-12 09:04:02 jlenain" """ FLaapLUC (Fermi/LAT automatic aperture photometry Light C<->Urve) @@ -470,6 +470,8 @@ def readSourceList(self, mysrc=None): self.dec = dec[i] self.z = z[i] self.fglName = fglName[i] + if self.fglName == 'None': + self.fglName = None return # If we end up without any found source, print out a WARNING