Skip to content

Commit

Permalink
Added check for if no LiDAR files in dataset ignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepearson committed Feb 29, 2024
1 parent dcf738c commit 5791351
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/geofabrics/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,9 +1178,10 @@ def _check_valid_inputs(self, lidar_datasets_info):
)
# Check some LiDAR files are specified
lidar_files = lidar_datasets_info[dataset_name]["file_paths"]
assert len(lidar_files) >= 1, (
"There are no LiDAR files specified in dataset: " f"{dataset_name}"
)
if len(lidar_files) == 0:
self.logger.warning(
f"Ignoring LiDAR dataset {dataset_name} as there are no LiDAR files within the ROI."
)
# Check for valid combination of chunk_size, lidar_files and tile_index_file
if self.chunk_size is None:
assert len(lidar_files) == 1, (
Expand Down

0 comments on commit 5791351

Please sign in to comment.