Skip to content

Commit

Permalink
fix test workflow for python < 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
zebengberg committed Sep 8, 2023
1 parent 3574b49 commit fba3f9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Install pycontrails (dev)
run: |
pip install -U pip wheel
pip install -e .[dev,docs,ecmwf,gcp,gfs,jupyter,pwlf,vis,zarr] --verbose
pip install -e .[complete] --verbose
# In latest-windows, redirecting stdout to a file uses utf-16 encoding
# This gives an error when ssh tries to read the key
Expand Down
2 changes: 1 addition & 1 deletion pycontrails/datalib/ecmwf/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def cache_dataset(self, dataset: xr.Dataset) -> None:
# put each hourly file into cache
cache_path = [
self.create_cachepath(
datetime.datetime.fromtimestamp(tg.tolist() / 1e9, datetime.UTC)
datetime.datetime.fromtimestamp(tg.tolist() / 1e9, datetime.timezone.utc)
)
for tg in time_group
]
Expand Down

0 comments on commit fba3f9c

Please sign in to comment.