Skip to content

Commit

Permalink
Fix dtype issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Dec 11, 2024
1 parent e6f2ee7 commit 1428ae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/sbank_hdf5_bankcombiner
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ for i, file_name in enumerate(args.input_filenames):
if items_dict is None:
items_dict = {}
for item, entries in hdf_fp.items():
items_dict[item] = numpy.array([])
dt = entries.dtype if hasattr(entries, "dtype") else None
items_dict[item] = numpy.array([], dtype=dt)
else:
curr_items = set(items_dict.keys())
new_items = set(hdf_fp.keys())
Expand Down

0 comments on commit 1428ae1

Please sign in to comment.