Skip to content
Snippets Groups Projects
Commit ece8b67b authored by Alexander Pace's avatar Alexander Pace Committed by Kipp Cannon
Browse files

Update lloidhandler.py: suppressing "float() argument must be a string or a...

Update lloidhandler.py: suppressing "float() argument must be a string or a number..." warnings in gstlal_inspiral
parent 4e07d5fa
No related branches found
No related tags found
No related merge requests found
......@@ -227,13 +227,13 @@ class EyeCandy(object):
try:
coinc_dict[attr] = float(getattr(coinc_inspiral_index[coinc_event_id], attr))
except TypeError as e:
print >>sys.stderr, e, attr, getattr(coinc_inspiral_index[coinc_event_id], attr)
pass#print >>sys.stderr, e, attr, getattr(coinc_inspiral_index[coinc_event_id], attr)
coinc_dict["end"] = float(coinc_inspiral_index[coinc_event_id].end)
for attr in ("likelihood",):
try:
coinc_dict[attr] = float(getattr(coinc_event_index[coinc_event_id], attr))
except TypeError as e:
print >>sys.stderr, e, attr, getattr(coinc_event_index[coinc_event_id], attr)
pass#print >>sys.stderr, e, attr, getattr(coinc_event_index[coinc_event_id], attr)
for sngl_row in sngl_inspiral_index[coinc_event_id]:
for attr in ("snr", "chisq", "mass1", "mass2", "spin1z", "spin2z"):
coinc_dict["%s_%s" % (sngl_row.ifo, attr)] = float(getattr(sngl_row, attr))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment