Skip to content

Commit

Permalink
Ajouter test pour calccul distance Euclidean
Browse files Browse the repository at this point in the history
  • Loading branch information
ElieWMaalouf committed Nov 1, 2023
1 parent de3dac7 commit 84c80fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_climatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def test_climaticPipeline():
expected_robinson_foulds_Norm = 1.0
assert utils.robinsonFoulds(trees["ALLSKY_SFC_SW_DWN"], trees["T2M"]) == (expected_robinson_foulds, expected_robinson_foulds_Norm)

# test Euclidean
expected_euclidean_dist = 0.5831890302466259
assert utils.euclideanDist(trees["ALLSKY_SFC_SW_DWN"], trees["T2M"]) == expected_euclidean_dist


def test_createClimaticList(climaticTreesSetup):
"""
Expand Down

0 comments on commit 84c80fa

Please sign in to comment.