From 640a053356fec3688fb192c3959e62ad60caca0d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 22:43:21 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/hdmf/build/objectmapper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hdmf/build/objectmapper.py b/src/hdmf/build/objectmapper.py index 686a70668..742689846 100644 --- a/src/hdmf/build/objectmapper.py +++ b/src/hdmf/build/objectmapper.py @@ -838,8 +838,8 @@ def __check_dset_spec(self, orig, ext): def __get_dimension_labels_from_spec(self, data, spec_shape, spec_dims, spec_dtype) -> tuple: if spec_shape is None or spec_dims is None: return None - - + + if isinstance(spec_dtype, RefSpec): # This assumes only one-dimensional dataset of references data_shape = (len(data), ) @@ -847,11 +847,11 @@ def __get_dimension_labels_from_spec(self, data, spec_shape, spec_dims, spec_dty error_message = ( "Support for building multi-dimensional datasets of references is not yet implemented." "Open an issue in HDMF if you need this feature." - ) + ) raise NotImplementedError(error_message) else: data_shape = get_data_shape(data) - + # if shape is a list of allowed shapes, find the index of the shape that matches the data if isinstance(spec_shape[0], list): match_shape_inds = list()