Skip to content
Snippets Groups Projects
Commit 0df532c4 authored by Alvin Li's avatar Alvin Li Committed by Patrick Godwin
Browse files

gstlal_inspiral_compress_ranking_stat: modify the two print lines to be python3 compatible

parent 597df20c
No related branches found
No related tags found
1 merge request!69Modifying the two print lines
Pipeline #270265 passed
......@@ -100,7 +100,7 @@ for filename in filenames:
rankingstat, rankingstatpdf = far.parse_likelihood_control_doc(xmldoc)
if rankingstatpdf is not None and options.verbose:
print >>sys.stderr, "WARNING: \"%s\" contains a RankingStatPDF object, it is not a pure ranking statistic file, you might be using this program on the wrong files." % filename
print("WARNING: \"%s\" contains a RankingStatPDF object, it is not a pure ranking statistic file, you might be using this program on the wrong files." % filename, file=sys.stderr)
# FIXME: don't hard-code object name
name = u"gstlal_inspiral_likelihood"
elem = rankingstat.get_xml_root(xmldoc, name)
......@@ -144,8 +144,7 @@ for filename in filenames:
j += 1
del items[j:]
if options.verbose:
print >>sys.stderr, "\"%s\": %s horizon history reduced to %.3g%% of original size" % (filename, instrument, 100. * j / (i + 1.))
print("\"%s\": %s horizon history reduced to %.3g%% of original size" % (filename, instrument, 100. * j / (i + 1.)), file=sys.stderr)
# replace
rankingstat.numerator.horizon_history[instrument] = type(horizon_history)(items)
......
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