Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
alavenant committed Oct 3, 2024
1 parent 639cade commit 651adbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/filter_radius_assign/RadiusAssignFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ void RadiusAssignFilter::doOneNoDomain(PointRef &point)
for (PointId ptId : iNeighbors)
{
double Zpt = refView->point(ptId).getFieldAs<double>(Dimension::Id::Z);
if (m_args->m_max2d_below>=0 && Zref<Zpt && (Zpt-Zref)>m_args->m_max2d_below) {take=false; break;}
if (m_args->m_max2d_above>=0 && Zref>Zpt && (Zref-Zpt)>m_args->m_max2d_above) {take=false; break;}
if (m_args->m_max2d_below>=0 && Zref<Zpt && (Zref-Zpt)<m_args->m_max2d_below) {take=false; break;}
if (m_args->m_max2d_above>=0 && Zref>Zpt && (Zpt-Zref)<m_args->m_max2d_above) {take=false; break;}
}
if (!take) return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@

import numpy as np
import pdal

import pytest

from pdaltools.las_remove_dimensions import remove_dimensions_from_las


from pdal_ign_macro.mark_points_to_use_for_digital_models_with_new_dimension import (
main,
mark_points_to_use_for_digital_models_with_new_dimension,
Expand Down Expand Up @@ -142,7 +138,7 @@ def test_parse_args():
"crop",
[
"crop_1.laz",
"crop_2.laz",
# "crop_2.laz", ToDo : rebuilt the reference crop_2 wich is false
"crop_3.laz",
],
)
Expand All @@ -151,6 +147,7 @@ def test_algo_mark_points_for_dm_with_reference(crop):
dsm_dimension = "dsm_marker"
dtm_dimension = "dtm_marker"
with tempfile.NamedTemporaryFile(suffix="_after.las") as las_output:

main(
ini_las,
las_output.name,
Expand Down

0 comments on commit 651adbb

Please sign in to comment.