Skip to content

Commit

Permalink
Fix empty plots in minifollowups (#3510)
Browse files Browse the repository at this point in the history
* Changes in pycbc_injection_minifollowup

* 2nd change

* 3rd change

Co-authored-by: Marion Pillas Boissonnet <marionpillasboissonnet@client-172-18-72-200.clients.u-psud.fr>
  • Loading branch information
MPillas and Marion Pillas Boissonnet authored Oct 26, 2020
1 parent b270e6a commit 420ada1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/minifollowups/pycbc_injection_minifollowup
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ for num_event in range(num_events):

injection_index = missed[sorting][num_event]
time = f['injections/end_time'][injection_index]

lon = f['injections/longitude'][injection_index]
lat = f['injections/latitude'][injection_index]

ifo_times = ''
inj_params = {}
for val in ['mass1', 'mass2', 'spin1z', 'spin2z', 'end_time']:
inj_params[val] = f['injections/%s' %(val,)][injection_index]
for single in single_triggers:
ifo = single.ifo
for seg in insp_data_seglists[single.ifo]:
if time in seg:
det = Detector(ifo)
lon = f['injections/longitude'][injection_index]
lat = f['injections/latitude'][injection_index]
ifo_time = time + det.time_delay_from_earth_center(lon, lat, time)
det = Detector(ifo)
ifo_time = time + det.time_delay_from_earth_center(lon, lat, time)
for seg in insp_analysed_seglists[ifo]:
if ifo_time in seg:
break
else:
ifo_time = -1.0
Expand Down

0 comments on commit 420ada1

Please sign in to comment.