Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Oct 11, 2023
1 parent 019addb commit 71f02ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/all_sky_search/pycbc_prepare_xml_for_gracedb
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ xmldoc.childNodes[-1].removeChild(coinc_table)

# Find the coinc_table entry corresponding to the desired event ID
event = None
for event in coinc_table:
coinc_event_id = event.coinc_event_id

for evnt in coinc_table:
coinc_event_id = evnt.coinc_event_id
if args.event_id == coinc_event_id:
# This is the event we want
event = evnt
break
if event is None:
raise ValueError(f"event {args.event_id} not found in coinc table")
Expand Down

0 comments on commit 71f02ed

Please sign in to comment.