Skip to content

Commit

Permalink
Codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
titodalcanton committed Feb 16, 2024
1 parent 349ad9c commit 6eb28d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pycbc/events/eventmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ def save_performance(self, ncores, nfilters, ntemplates, run_time,
self.write_performance = True

def write_events(self, outname):
"""Write the found events to a file. The only currently supported format
is HDF5, indicated by an .hdf or .h5 extension.
"""Write the found events to a file. The only currently supported
format is HDF5, indicated by an .hdf or .h5 extension.
"""
self.make_output_dir(outname)
if outname.endswith(('.hdf', '.h5')):
Expand Down Expand Up @@ -604,11 +604,11 @@ def write_gating_info_to_hdf(self, hf):
datasets: `/<detector>/gating/{file, auto}/{time, width, pad}` where
"file" and "auto" indicate respectively externally-provided gates and
internally-generated gates (autogating), and "time", "width" and "pad"
indicate the gate center times, total durations and padding durations in
seconds respectively.
indicate the gate center times, total durations and padding durations
in seconds respectively.
"""
if 'gating_info' not in self.global_params:
continue
return
gates = self.global_params['gating_info']
for ifo, gate_type in itertools.product(self.ifos, ['file', 'auto']):
if gate_type not in gates[ifo]:
Expand Down

0 comments on commit 6eb28d0

Please sign in to comment.