Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-fan-wang committed Feb 5, 2024
1 parent c2c356e commit 5c082a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pycbc_convertinjfiletohdf
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ if injclass is None:
# Assume this is a PyCBC format
injclass = InjectionSet(args.injection_file)
data = {}
for key in xinj.table[0].__slots__:
data[str(key)] = numpy.array([getattr(t, key) for t in xinj.table])
for key in injclass.table[0].__slots__:
data[str(key)] = numpy.array([getattr(t, key) for t in injclass.table])
else:
data = injclass.pack_data_into_pycbc_format_input()

Expand Down

0 comments on commit 5c082a1

Please sign in to comment.