From e68586c582d00e35e24499d5721e8787b57d8f2a Mon Sep 17 00:00:00 2001 From: William Patton Date: Sun, 25 Aug 2024 13:43:13 -0400 Subject: [PATCH] black formatting changes --- funlib/persistence/arrays/array.py | 4 +++- funlib/persistence/arrays/datasets.py | 8 +++++--- funlib/persistence/arrays/metadata.py | 8 +++++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/funlib/persistence/arrays/array.py b/funlib/persistence/arrays/array.py index e8ec9b3..f30229c 100644 --- a/funlib/persistence/arrays/array.py +++ b/funlib/persistence/arrays/array.py @@ -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 diff --git a/funlib/persistence/arrays/datasets.py b/funlib/persistence/arrays/datasets.py index 6cdfb46..24e31c7 100644 --- a/funlib/persistence/arrays/datasets.py +++ b/funlib/persistence/arrays/datasets.py @@ -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) diff --git a/funlib/persistence/arrays/metadata.py b/funlib/persistence/arrays/metadata.py index ac1f07a..c71cf78 100644 --- a/funlib/persistence/arrays/metadata.py +++ b/funlib/persistence/arrays/metadata.py @@ -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)