Skip to content

Commit

Permalink
Dont use HFile to write outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtrevor committed Sep 11, 2024
1 parent 958930a commit 303beed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/live/pycbc_live_collated_dq_trigger_rates
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import numpy as np
import pycbc
from pycbc.io import HFile

import h5py as h5

import gwdatafind

from gwpy.timeseries import TimeSeriesDict
Expand Down Expand Up @@ -120,7 +122,7 @@ with HFile(args.trigger_file, 'r') as trigf:

# write outputs to file
logging.info(f'Writing results to {args.output}')
with HFile(args.output, 'w') as f:
with h5.File(args.output, 'w') as f:
ifo_group = f.create_group(args.ifo)
ifo_group.create_dataset('observing_livetime', data=livetime)
ifo_group.create_dataset('dq_flag_livetime', data=flagged_time)
Expand Down

0 comments on commit 303beed

Please sign in to comment.