Skip to content

Commit

Permalink
Second set of review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pannarale committed Jan 30, 2025
1 parent 20c6cba commit b1b3c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pygrb/pycbc_pygrb_page_tables
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ if lofft_outfile:
# When len(offsource_trigs) == 0, the loop above leaves td = [] unchanged
# and this case needs to be handled adequately prior to moving on
if not td:
td = [[] for i in np.arange(len(th))]
td = [[]] * len(th)

# To ensure desired formatting in the h5 file and html table:
# 1) "transpose" the data preserving its dtype
Expand Down Expand Up @@ -658,7 +658,7 @@ if found_missed_file is not None:

# Handle the case in which there is no data to be placed in the table
if not td:
td = [[] for i in np.arange(len(th))]
td = [[]] * len(th)

# Write to h5 file
with HFile(qf_h5_outfile, 'w') as qf_h5_fp:
Expand Down

0 comments on commit b1b3c7f

Please sign in to comment.