Skip to content

Commit c2d426c

Browse files
committed
turn off storage caching
1 parent 6423a14 commit c2d426c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

activestorage/netcdf_to_zarr.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def gen_json(file_url, varname, outf, storage_type, storage_options):
1818
fs = s3fs.S3FileSystem(key=S3_ACCESS_KEY,
1919
secret=S3_SECRET_KEY,
2020
client_kwargs={'endpoint_url': S3_URL},
21-
default_fill_cache=False,
22-
default_cache_type="none"
21+
# default_fill_cache=False,
22+
# default_cache_type="none"
2323
)
2424
fs2 = fsspec.filesystem('')
2525
with fs.open(file_url, 'rb') as s3file:
@@ -32,8 +32,8 @@ def gen_json(file_url, varname, outf, storage_type, storage_options):
3232
# S3 passed-in configuration
3333
elif storage_type == "s3" and storage_options is not None:
3434
storage_options = storage_options.copy()
35-
storage_options['default_fill_cache'] = False
36-
storage_options['default_cache_type'] = "none"
35+
# storage_options['default_fill_cache'] = False
36+
# storage_options['default_cache_type'] = "none"
3737
fs = s3fs.S3FileSystem(**storage_options)
3838
fs2 = fsspec.filesystem('')
3939
tk1 = time.time()

0 commit comments

Comments
 (0)