Skip to content

Commit

Permalink
remove safe chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jan 3, 2025
1 parent 1fd874d commit a7d304e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/nwp_consumer/internal/entities/tensorstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ def write_to_region(
region = region_result.unwrap()

# Perform the regional write
log.debug(f"Writing to region {region} of store {self.name}")
try:
# TODO not use safe_chunks=False in general
da.to_zarr(store=self.path, region=region, consolidated=True, safe_chunks=False)
da.to_zarr(store=self.path, region=region, consolidated=True)
except Exception as e:
return Failure(
OSError(
Expand Down

0 comments on commit a7d304e

Please sign in to comment.