Skip to content

Commit

Permalink
Replace H with h inside pandas' floor function (#64)
Browse files Browse the repository at this point in the history
Thanks @0xFrama for this
  • Loading branch information
0xFrama authored Feb 27, 2024
1 parent 74d3d1f commit af1a7bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quartz_solar_forecast/dataset/make_test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def filter_timestamps_if_hf_files_exists(timestamps_full: pd.DatetimeIndex):
fs = HfFileSystem()
# print(fs.ls("datasets/openclimatefix/dwd-icon-eu/data/2022/4/11/", detail=False))
for timestamp in timestamps_full:
timestamp_floor = timestamp.floor("6H")
timestamp_floor = timestamp.floor("6h")
_, huggingface_file = make_hf_filename(timestamp_floor)
huggingface_file = huggingface_file[14:]

Expand Down
2 changes: 1 addition & 1 deletion quartz_solar_forecast/eval/nwp.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_nwp_for_one_timestamp_one_location(
# print(fs.ls("datasets/openclimatefix/dwd-icon-eu/data/2022/4/11/", detail=False))

# round timestamp to 6 hours floor
timestamp_floor = timestamp.floor("6H")
timestamp_floor = timestamp.floor("6h")
date_and_hour, huggingface_file = make_hf_filename(timestamp_floor)

# dataset variables, note these are unique for ICON
Expand Down

0 comments on commit af1a7bd

Please sign in to comment.