Skip to content

Commit

Permalink
suppress datetime conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Sep 27, 2024
1 parent f89e496 commit 39fa478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climada_petals/hazard/tc_tracks_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def _subset_to_track(msg, index, provider, timestamp_origin, name, id_no):
# prevent issueing a million warnings about conversion of non-nanosecond precision
# datetime to nanosecond precision, e.g. in fetch_ecmwf
# TODO: fix it through converting those _before_ creating the xr.Dataset

Check warning on line 514 in climada_petals/hazard/tc_tracks_forecast.py

View check run for this annotation

Jenkins - WCR / Pylint

fixme

NORMAL: TODO: fix it through converting those _before_ creating the xr.Dataset
Raw output
no description found
warnings.simplefilter(action='error', category=UserWarning)
warnings.simplefilter(action='ignore', category=UserWarning)

track = xr.Dataset(
data_vars={
Expand Down

0 comments on commit 39fa478

Please sign in to comment.