DeepLearnPhysics / lartpc_mlreco3d

7 stars 32 forks source link

Unwrapper handling of empty entries within a batch #116

Open francois-drielsma opened 2 years ago

francois-drielsma commented 2 years ago

Two things I observed:

It looks to me that if a data product, say particle_graph, has no corresponding row for a particular batch ID, the number of np.arrays returned by the unwrapper may be different from other data products that do, which is undesirable. If the batch_size is 16, we should have 16 objects per data product returned, even if they are empty. One way to do this is to use the batch_idx_max to resize outputs instead of appending them. Correct me if I am misreading the code.