Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace H with h inside pandas' floor function #64

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
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 @@
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")

Check warning on line 119 in quartz_solar_forecast/dataset/make_test_set.py

View check run for this annotation

Codecov / codecov/patch

quartz_solar_forecast/dataset/make_test_set.py#L119

Added line #L119 was not covered by tests
_, 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 @@
# 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")

Check warning on line 84 in quartz_solar_forecast/eval/nwp.py

View check run for this annotation

Codecov / codecov/patch

quartz_solar_forecast/eval/nwp.py#L84

Added line #L84 was not covered by tests
date_and_hour, huggingface_file = make_hf_filename(timestamp_floor)

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