Skip to content

Commit

Permalink
Dont assume a hdf is pycbc-style injections
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Aug 11, 2023
1 parent 05784c1 commit 0f8c215
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pycbc/workflow/injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,9 @@ def cut_distant_injections(workflow, inj_file, out_dir, tags=None):
return node.output_files[0]

def inj_to_hdf(workflow, inj_file, out_dir, tags=None):
""" Convert injection file to hdf format if not already one
""" Convert injection file to hdf format, if it is already one,
this just makes a copy
"""
_, ext = os.path.splitext(inj_file.name)
if ext == '.hdf':
return inj_file

if tags is None:
tags = []

Expand Down

0 comments on commit 0f8c215

Please sign in to comment.