Skip to content

Commit

Permalink
fix: support edge-case where src laz has no valid patch (pre_filter i…
Browse files Browse the repository at this point in the history
…s False)

A HDF5 group for the src file is not created if all patches included in a source laz do not pass the pre_filter step.

This typically happens in clouds with a low or null number of points, when pre_filter requires a larger number of points than available.
  • Loading branch information
CharlesGaydon committed Sep 14, 2023
1 parent 0783d58 commit e57f800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion myria3d/pctl/dataset/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,6 @@ def create_hdf5(
)

# A termination flag to report that all samples for this point cloud were included in the df5 file.
hdf5_file[split][basename].attrs["is_complete"] = True
# Group may not have been created if source cloud had no patch passing the pre_filter step, hence the "if" here.
if basename in hdf5_file[split]:
hdf5_file[split][basename].attrs["is_complete"] = True

0 comments on commit e57f800

Please sign in to comment.