contrailcirrus / pycontrails

Python library for modeling contrails and other aviation climate impacts
https://py.contrails.org/
Apache License 2.0
59 stars 18 forks source link

GCPCacheStore fails when `cache_dir` is defined #249

Open mlshapiro opened 1 month ago

mlshapiro commented 1 month ago

Description

GCPCacheStore fails when cache_dir is defined.

Details

Steps to Reproduce

GCP_CACHE = GCPCacheStore(bucket=BUCKET, cache_dir="cache")
DATE = pd.Timestamp("2019-02-01")

time_bounds = (DATE, DATE + pd.Timedelta("36h"))
pressure_levels = (350, 300, 250, 225, 200, 175, 150)

era5pl = ERA5(
    time=time_bounds,
    variables=Cocip.met_variables,
    pressure_levels=pressure_levels,
    cachestore=GCP_CACHE
)

Additional Notes

We may not want to support the GCPCacheStore anymore given that we have Zarr files.