Skip to content

Commit

Permalink
Skip files that don't have enough points to create a neighbourhood
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Jun 27, 2023
1 parent ed7cbaa commit 6433aa1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bird_cloud_gnn/radar_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ def _process_data(self, data, origin=""):
)
].index
).reset_index(drop=True)
if len(data) < self.num_neighbours:
print(
f"Warning: There are not enough points to find {self.num_neighbours} neighbourhood"
)
return

data_xyz = data[xyz]
# remove the special features so they can be generated later
Expand Down

0 comments on commit 6433aa1

Please sign in to comment.