File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -330,19 +330,19 @@ def _chunk_variable(ds: Dataset, variable_name: str) -> None:
330330 idx = i
331331 break
332332
333- def determine_target_size (t : str ) -> int :
334- if t == "bool" :
333+ def determine_target_size (var_type : str ) -> int :
334+ if var_type == "bool" :
335335 return MAX_SIZE_LIVE_MASK
336336 return MAX_COORDINATES_BYTES
337337
338338 # Create the chunk grid metadata
339- t = ds .variables [idx ].data_type
339+ var_type = ds .variables [idx ].data_type
340340 full_shape = tuple (dim .size for dim in ds .variables [idx ].dimensions )
341- target_size = determine_target_size (t )
341+ target_size = determine_target_size (var_type )
342342
343343 chunks = ChunkGridMetadata (
344344 chunk_grid = RegularChunkGrid (
345- configuration = RegularChunkShape (chunk_shape = get_constrained_chunksize (full_shape , t , target_size ))
345+ configuration = RegularChunkShape (chunk_shape = get_constrained_chunksize (full_shape , var_type , target_size ))
346346 )
347347 )
348348
You can’t perform that action at this time.
0 commit comments