Skip to content

Commit

Permalink
Use h5py File instead of PyCBC HFile for outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtrevor committed Sep 11, 2024
1 parent c547b8e commit d37185d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/live/pycbc_live_collated_dq_trigger_rates
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import argparse
import hashlib

import numpy as np
import h5py as h5

import pycbc
from pycbc.io import HFile
Expand Down Expand Up @@ -120,7 +121,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 d37185d

Please sign in to comment.