diff --git a/gstlal-inspiral/bin/gstlal_ll_inspiral_event_plotter b/gstlal-inspiral/bin/gstlal_ll_inspiral_event_plotter index 64bea8485068debb6a388560387f8173a5c7936b..2502a8af311676de4bd28d936d35218401be7540 100755 --- a/gstlal-inspiral/bin/gstlal_ll_inspiral_event_plotter +++ b/gstlal-inspiral/bin/gstlal_ll_inspiral_event_plotter @@ -407,7 +407,7 @@ class EventPlotter(events.EventProcessor): for i, bank in enumerate(list(banks.values())[0]): for j, row in enumerate(bank.sngl_inspiral_table): # The templates should all have the same template_id, so just grab one - if row.Gamma0 == eventid_trigger_dict.values()[0].Gamma0: + if row.Gamma0 == list(eventid_trigger_dict.values())[0].Gamma0: banknum = i tmpltnum = j break diff --git a/gstlal-inspiral/python/svd_bank_snr.py b/gstlal-inspiral/python/svd_bank_snr.py index 7d46ab293680a274c6e61bf597f3a5c221ffd694..1c79b4b85e4ccbdbe47363de696e32b78e247520 100644 --- a/gstlal-inspiral/python/svd_bank_snr.py +++ b/gstlal-inspiral/python/svd_bank_snr.py @@ -648,9 +648,9 @@ def scan_svd_banks_for_row(coinc_xmldoc, banks_dict): bank_number = None row_number = None - for i, bank in enumerate(banks_dict.values()[0]): + for i, bank in enumerate(list(banks_dict.values())[0]): for j, row in enumerate(bank.sngl_inspiral_table): - if row.template_id == eventid_trigger_dict.values()[0].template_id: + if row.template_id == list(eventid_trigger_dict.values())[0].template_id: bank_number = i row_number = j break