File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 2121from mdio .core .utils_write import MAX_COORDINATES_BYTES
2222from mdio .core .utils_write import MAX_SIZE_LIVE_MASK
2323from mdio .core .utils_write import get_constrained_chunksize
24- from mdio .schemas .chunk_grid import RegularChunkGrid
25- from mdio .schemas .chunk_grid import RegularChunkShape
2624from mdio .schemas .metadata import ChunkGridMetadata
2725
2826# from mdio.schemas.v1.dataset_builder import ChunkGridMetadata
@@ -342,13 +340,7 @@ def determine_target_size(var_type: str) -> int:
342340 target_size = determine_target_size (var_type )
343341
344342 chunk_shape = get_constrained_chunksize (full_shape , var_type , target_size )
345- chunks = ChunkGridMetadata .model_validate ({
346- "chunkGrid" : {
347- "configuration" : {
348- "chunkShape" : chunk_shape
349- }
350- }
351- })
343+ chunks = ChunkGridMetadata .model_validate ({"chunkGrid" : {"configuration" : {"chunkShape" : chunk_shape }}})
352344
353345 # Update the variable's metadata with the new chunk grid
354346 if ds .variables [idx ].metadata is None :
You can’t perform that action at this time.
0 commit comments