Open
Conversation
gliegard
suggested changes
Mar 9, 2026
| num_filtered = len(filtered_arrays[0]) | ||
| print(f"Nombre de points filtrés: {num_filtered}") | ||
|
|
||
| assert num_filtered <= num_points |
There was a problem hiding this comment.
L'algo de calcul des jours, la distribution des jours et la fenetre est assez compliqué.
Et le test ne vérifie pas que l'algo a bien fonctionné.
Pour être plus précis, tu pourrais faire
assert num_points == le_nombre_de_point_total
assert num_filtered == le_nombre_de_points_filtré
|
|
||
| las_out = laspy.read(OUTPUT_LAS) | ||
| assert len(las_out.points) > 0, "Points preserved after processing" | ||
| assert "Z_ref" in las_out.point_format.dimension_names, "Z_ref dimension added" |
There was a problem hiding this comment.
pareil ici tu pourrais vérifier plus de choses
assert len(las_out.points) == le_nombre_points
| assert isinstance(pipeline, pdal.Pipeline) | ||
| arrays = pipeline.arrays | ||
| assert len(arrays) == 1 | ||
| assert len(arrays[0]) > 0 # Fichier test a des points |
There was a problem hiding this comment.
au lieu de mettre
assert len(arrays[0]) > 0 # Fichier test a des points
autant mettre directement le nb de points du fichier de test
assert len(arrays[0]) ==le_nombre_de_points
refacto function with test
a866eaa to
e136d53
Compare
… computation - normalize_height_in_pointcloud: build TIN from all points with dtm_marker==1 (no longer restricted to Classification==2), apply filter_dimension/filter_values after HAG computation, remove use_dtm_marker parameter - validate_lidar_file: check that dtm_marker extra dimension is present - main_pretreatment: remove use_dtm_marker call argument - configs/config.yaml: remove use_dtm_marker parameter - tests: update synthetic data with dtm_marker field, use real file without dtm_marker to test the new validation error >
gliegard
suggested changes
Mar 18, 2026
lidar_for_fuel/_version.py
Outdated
| @@ -1,4 +1,4 @@ | |||
| __version__ = "0.0.2" | |||
| __version__ = "1.0.0" | |||
There was a problem hiding this comment.
Pas besoin d'incrémenter le n° de version majeur. Le n° de version mineur est suffisant. Passe plutôt en 0.1.0.
Et il faut que ce soit dans un commit à part, car c'est un moment important et unitaire un changement de version.
6a7ddbd to
3792838
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fonction de pré-traitement de LIdarForFuel :