Skip to content

Commit

Permalink
Fixed test for grav_index for NaN values
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Sep 13, 2023
1 parent a1a5550 commit 28abf45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_trait_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def test_younger_monocot_pipeline(rice_h5, rice_folder):
), f"Unexpected dtype for column {col} in all_traits"

# Value range assertions for traits
# assert (
# rice_traits["grav_index"] >= 0
# ).all(), "grav_index in rice_traits contains negative values"
assert (
rice_traits["grav_index"].fillna(0) >= 0
).all(), "grav_index in rice_traits contains negative values"
assert (
all_traits["grav_index_median"] >= 0
).all(), "grav_index in all_traits contains negative values"
Expand Down

0 comments on commit 28abf45

Please sign in to comment.