Skip to content

Commit

Permalink
correct conversion in non S3 storage case too, I forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriupredoi committed Mar 18, 2024
1 parent 190a81a commit 20a246c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions activestorage/netcdf_to_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def gen_json(file_url, varname, outf, storage_type, storage_options):
# for active storage, we don't want anything inline
with fs.open(outf, 'wb') as f:
content = h5chunks.translate()
content = _correct_compressor_and_filename(content,
varname,
bryan_bucket=False)
f.write(ujson.dumps(content).encode())

zarray = ujson.loads(content['refs'][f"{varname}/.zarray"])
Expand Down

0 comments on commit 20a246c

Please sign in to comment.