Skip to content

Commit

Permalink
Allow zero-length data products to be merged
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyjadams committed Jul 17, 2023
1 parent 953bc86 commit ed62f8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/merge_larcv3_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ def copy_data_product(input_file, output_file, group_name):
if 'extents' in dataset:

# Get the offsets for the new table before resizing:
existing_offset = output_table['first'][-1]+ output_table['N'][-1]
index = len(output_table)
if index != 0:
existing_offset = output_table['first'][-1]+ output_table['N'][-1]
else:
existing_offset = 0



Expand Down

0 comments on commit ed62f8b

Please sign in to comment.