Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Sep 20, 2024
1 parent cb638d0 commit 3325284
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python_version: ["3.10"]
pytest_args: [tests/geospatial/test_atmospheric_circulation.py --ignore=tests/tpch]
pytest_args: [tests --ignore=tests/tpch]
extra-env: [""]
name_prefix: [tests]
include:
Expand Down
15 changes: 7 additions & 8 deletions tests/geospatial/test_atmospheric_circulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ def test_atmospheric_circulation(
temdiags = zonal_means.merge(anomaly[["uv", "vt", "uw"]].mean("longitude"))

# This is incredibly slow, takes a while for flox to construct the graph
# daily = temdiags.resample(time="D").mean()
daily = temdiags.resample(time="D").mean()

# Option 2: rechunk to make it a blockwise problem
# we should do this automatically
daily = (
temdiags.chunk(time=xr.groupers.TimeResampler("D"))
.resample(time="D")
.mean()
)
# # Users often rework things via a rechunk to make this a blockwise problem
# daily = (
# temdiags.chunk(time=xr.groupers.TimeResampler("D"))
# .resample(time="D")
# .mean()
# )

daily.to_zarr(gcs_url, storage_options={"token": CoiledShippedCredentials()})

0 comments on commit 3325284

Please sign in to comment.