Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CSET/cset_workflow/app/fetch_fcst/bin/fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ def _template_file_path(
match date_type:
case "validity":
date = data_time
while date <= data_time + forecast_length:
while date < data_time + forecast_length:
placeholder_times.append(date)
date += data_period
case "initiation":
placeholder_times.append(data_time)
lead_time = forecast_offset
while lead_time <= forecast_length:
while lead_time < forecast_length:
lead_times.append(lead_time)
lead_time += data_period
case _:
Expand Down
1 change: 0 additions & 1 deletion tests/workflow_utils/test_fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def test_template_file_path_validity_time():
"/path/2000-01-03.nc",
"/path/2000-01-04.nc",
"/path/2000-01-05.nc",
"/path/2000-01-06.nc",
]
assert actual == expected

Expand Down