Skip to content

Commit

Permalink
black formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Aug 25, 2024
1 parent 5dff2e5 commit e68586c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 3 additions & 1 deletion funlib/persistence/arrays/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ def to_ndarray(self, roi, fill_value=0):

return data

def __slices(self, roi, use_lazy_slices: bool = True, check_chunk_align: bool = False):
def __slices(
self, roi, use_lazy_slices: bool = True, check_chunk_align: bool = False
):
"""Get the voxel slices for the given roi."""

voxel_roi = (roi - self.offset) / self.voxel_size
Expand Down
8 changes: 5 additions & 3 deletions funlib/persistence/arrays/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ def prepare_ds(
offset.dims if offset is not None else None,
voxel_size.dims if voxel_size is not None else None,
len(units) if units is not None else None,
len([n for n in axis_names if "^" not in n])
if axis_names is not None
else None,
(
len([n for n in axis_names if "^" not in n])
if axis_names is not None
else None
),
]
)
spatial_dims.discard(None)
Expand Down
8 changes: 5 additions & 3 deletions funlib/persistence/arrays/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ def physical_dims(self) -> int:
len(self._units) if self._units is not None else None,
self._voxel_size.dims if self._voxel_size is not None else None,
self._offset.dims if self._offset is not None else None,
len([name for name in self._axis_names if "^" not in name])
if self._axis_names is not None
else None,
(
len([name for name in self._axis_names if "^" not in name])
if self._axis_names is not None
else None
),
]
potential_physical_dims = set(physical_dim_indicators)
potential_physical_dims.discard(None)
Expand Down

0 comments on commit e68586c

Please sign in to comment.