Skip to content

Commit

Permalink
fix test_amount2lwethickness
Browse files Browse the repository at this point in the history
  • Loading branch information
coxipi committed Sep 17, 2024
1 parent c382be1 commit b8b9cd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,11 @@ def test_amount2lwethickness(snw_series):
snw = snw_series(np.ones(365), start="2019-01-01")

swe = amount2lwethickness(snw, out_units="mm")
# FIXME: Asserting these statements shows that they are not equal
assert swe.attrs["standard_name"] == "lwe_thickness_of_snowfall_amount"
assert swe.attrs["standard_name"] == "lwe_thickness_of_surface_snow_amount"
np.testing.assert_allclose(swe, 1)

snw = lwethickness2amount(swe)
# FIXME: Asserting these statements shows that they are not equal
assert snw.attrs["standard_name"] == "snowfall_amount"
assert snw.attrs["standard_name"] == "surface_snow_amount"


@pytest.mark.parametrize(
Expand Down

0 comments on commit b8b9cd7

Please sign in to comment.