Skip to content
Snippets Groups Projects
Commit 978a279c authored by Kipp Cannon's avatar Kipp Cannon Committed by Kipp Cannon
Browse files

inspiral.py: Python 3 future-proofing

- .iteritems() --> .items()
parent 6a91321b
No related branches found
No related tags found
No related merge requests found
......@@ -835,7 +835,7 @@ class Data(object):
# events with an identical likelihood. It will just
# choose the event with the highest event id
if self.stream_thinca.last_coincs:
self.stream_thinca.last_coincs.coinc_event_index = dict([max(self.stream_thinca.last_coincs.coinc_event_index.iteritems(), key = lambda (coinc_event_id, coinc_event): coinc_event.likelihood)])
self.stream_thinca.last_coincs.coinc_event_index = dict([max(self.stream_thinca.last_coincs.coinc_event_index.items(), key = lambda (coinc_event_id, coinc_event): coinc_event.likelihood)])
# Add events to the observed likelihood histogram
# post "clustering"
......@@ -938,7 +938,7 @@ class Data(object):
# events with an identical likelihood. It will just
# choose the event with the highest event id
if self.stream_thinca.last_coincs:
self.stream_thinca.last_coincs.coinc_event_index = dict([max(self.stream_thinca.last_coincs.coinc_event_index.iteritems(), key = lambda (coinc_event_id, coinc_event): coinc_event.likelihood)])
self.stream_thinca.last_coincs.coinc_event_index = dict([max(self.stream_thinca.last_coincs.coinc_event_index.items(), key = lambda (coinc_event_id, coinc_event): coinc_event.likelihood)])
# Add events to the observed likelihood histogram post
# "clustering"
......
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