Skip to content

Commit e480d36

Browse files
daflackjfrost-mo
authored andcommitted
Apply suggestions from code review
1 parent 37a8dd6 commit e480d36

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/CSET/operators/collapse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def collapse_by_hour_of_day(
108108
Collapsing of the cube is around the 'time' coordinate. The coordinates are
109109
first grouped by the hour of day, and then aggregated by the hour of day
110110
to create a diurnal cycle. This operator is applicable for both single
111-
forecasts and for multiple forecasts.
111+
forecasts and for multiple forecasts. The hour used is based on the units of
112+
the time coordinate. If the time coordinate is in UTC, hour will be in UTC.
112113
113114
To apply this operator successfully there must only be one time dimension.
114115
Should a MultiDim exception be raised the user first needs to apply the

tests/operators/test_collapse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
def long_forecast() -> iris.cube.Cube:
2626
"""Get long_forecast to run tests on."""
2727
return iris.load_cube(
28-
"tests/test_data/long_forecast_air_temperature.nc", "air_temperature"
28+
"tests/test_data/long_forecast_air_temp_fcst_1.nc", "air_temperature"
2929
)
3030

3131

0 commit comments

Comments
 (0)