Skip to content

Commit

Permalink
Update ocf_data_sampler/torch_datasets/site.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandra Udaltsova <[email protected]>
  • Loading branch information
peterdudfield and AUdaltsova authored Nov 4, 2024
1 parent 972bb0f commit f930ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocf_data_sampler/torch_datasets/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def find_valid_t0_and_site_ids(

# The last step of the forecast is lost if we have to diff channels
if len(nwp_config.nwp_accum_channels) > 0:
end_buffer = pd.to_timedelta(nwp_config.time_resolution_minutes)
end_buffer = minutes(nwp_config.time_resolution_minutes)
else:
end_buffer =minutes(0)

Expand Down

0 comments on commit f930ff5

Please sign in to comment.