Skip to content

Commit

Permalink
Corrects units of accumulation data in snow splitter test
Browse files Browse the repository at this point in the history
  • Loading branch information
MoseleyS committed Jan 22, 2024
1 parent 1ecb746 commit 4ee35a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def precip_acc_cube() -> Cube:
precip_cube = set_up_variable_cube(
data,
name="lwe_thickness_of_precipitation_amount",
units="m/s",
units="m",
time_bounds=(datetime(2017, 11, 10, 3, 0), datetime(2017, 11, 10, 4, 0)),
attributes=LOCAL_MANDATORY_ATTRIBUTES,
)
Expand Down Expand Up @@ -120,7 +120,7 @@ def run_test(
expected = rain_value if output_is_rain else snow_value
assert np.isclose(result.data, expected).all()
assert result.name() == cube_name
assert result.units == "m/s"
assert result.units == precip_cube.units
assert result.attributes == LOCAL_MANDATORY_ATTRIBUTES


Expand Down

0 comments on commit 4ee35a9

Please sign in to comment.