Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 21, 2025
1 parent 42c5d04 commit 640a053
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hdmf/build/objectmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,20 +838,20 @@ 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), )
if len(spec_shape) != 1:
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()
Expand Down

0 comments on commit 640a053

Please sign in to comment.