Skip to content

Commit ca44730

Browse files
BrianMichelltasansal
authored andcommitted
linting
1 parent 19ebe9d commit ca44730

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/mdio/core/grid.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ def build_map(self, index_headers):
9494
# It's unlikely that we overflow the uint32_max, but this helps
9595
# prevent any issues while keeping the memory footprint as low as possible.
9696
grid_size = np.prod(self.shape[:-1])
97-
if grid_size > UINT32_MAX-1:
97+
if grid_size > UINT32_MAX - 1:
9898
# We use UINT32_MAX-1 to ensure that the assumption below is not violated.
9999
# "far away" is relative.
100100
logging.warning(
101-
f"Grid size {grid_size} exceeds UINT32_MAX ({UINT32_MAX-1}). "
101+
f"Grid size {grid_size} exceeds UINT32_MAX ({UINT32_MAX - 1}). "
102102
"Using uint64 for trace map which will use more memory."
103103
)
104104
dtype = "uint64"
@@ -107,7 +107,8 @@ def build_map(self, index_headers):
107107
dtype = "uint32"
108108
fill_value = UINT32_MAX
109109

110-
# We set dead traces to max uint32/uint64 value. Should be far away from actual trace counts.
110+
# We set dead traces to max uint32/uint64 value.
111+
# Should be far away from actual trace counts.
111112
self.map = zarr.full(self.shape[:-1], dtype=dtype, fill_value=fill_value)
112113
self.map.vindex[live_dim_indices] = range(len(live_dim_indices[0]))
113114

0 commit comments

Comments
 (0)