Skip to content

Commit 94f5c84

Browse files
committed
pre-commit
1 parent 13e9d3d commit 94f5c84

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/mdio/converters/segy.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
from mdio.core.utils_write import MAX_COORDINATES_BYTES
2222
from mdio.core.utils_write import MAX_SIZE_LIVE_MASK
2323
from mdio.core.utils_write import get_constrained_chunksize
24-
from mdio.schemas.chunk_grid import RegularChunkGrid
25-
from mdio.schemas.chunk_grid import RegularChunkShape
2624
from 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:

0 commit comments

Comments
 (0)