Add tests for priority-flood numba/Python parity and _strip_lidar_ext
This commit is contained in:
@ -548,3 +548,22 @@ class TestPureDtm:
|
||||
vals = sorted(float(v) for v in arr.flatten())
|
||||
assert len(vals) == 4
|
||||
assert vals[-1] == 10.0
|
||||
|
||||
|
||||
class TestStripLidarExt:
|
||||
def test_copc_laz(self):
|
||||
from lidar_pipeline.dtm import _strip_lidar_ext
|
||||
assert _strip_lidar_ext("LHD_FXX_1000_6881_PTS_LAMB93_IGN69.copc.laz") == "LHD_FXX_1000_6881_PTS_LAMB93_IGN69"
|
||||
|
||||
def test_laz(self):
|
||||
from lidar_pipeline.dtm import _strip_lidar_ext
|
||||
assert _strip_lidar_ext("file.laz") == "file"
|
||||
|
||||
def test_las(self):
|
||||
from lidar_pipeline.dtm import _strip_lidar_ext
|
||||
assert _strip_lidar_ext("file.las") == "file"
|
||||
|
||||
def test_path_object(self):
|
||||
from lidar_pipeline.dtm import _strip_lidar_ext
|
||||
from pathlib import Path
|
||||
assert _strip_lidar_ext(Path("/data/input/file.copc.laz")) == "file"
|
||||
|
||||
Reference in New Issue
Block a user