Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Jan 21, 2025
1 parent 0b7facb commit 2b482c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/hdmf/build/objectmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,12 @@ def build(self, **kwargs):
msg = "'container' must be of type Data with DatasetSpec"
raise ValueError(msg)
spec_dtype, spec_shape, spec_dims, spec = self.__check_dset_spec(self.spec, spec_ext)
dimension_labels = self.__get_dimension_labels_from_spec(container.data, spec_shape, spec_dims, spec_dtype,)
dimension_labels = self.__get_dimension_labels_from_spec(
container.data,
spec_shape,
spec_dims,
spec_dtype,
)
if isinstance(spec_dtype, RefSpec):
self.logger.debug("Building %s '%s' as a dataset of references (source: %s)"
% (container.__class__.__name__, container.name, repr(source)))
Expand Down Expand Up @@ -839,7 +844,6 @@ def __get_dimension_labels_from_spec(self, data, spec_shape, spec_dims, spec_dty
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), )

Check warning on line 849 in src/hdmf/build/objectmapper.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/build/objectmapper.py#L849

Added line #L849 was not covered by tests
Expand Down

0 comments on commit 2b482c3

Please sign in to comment.