Skip to content

Commit

Permalink
Fix codestyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRyanIrish committed Jul 3, 2024
1 parent 6d38c67 commit fb788f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion ndcube/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _sanitize_axis_value(self, axis, value, key):
f"Has shape {value.shape if hasattr(value, 'shape') else len(value)}")
elif len(axis) != 1:
raise ValueError("Scalar and str metadata can only be assigned to one axis. "

Check warning on line 210 in ndcube/meta.py

View check run for this annotation

Codecov / codecov/patch

ndcube/meta.py#L210

Added line #L210 was not covered by tests
f"key = {key}; value = {value}; axes = {axes}")
f"key = {key}; value = {value}; axes = {axis}")
self._data_shape = data_shape
return axis

Expand Down
2 changes: 0 additions & 2 deletions ndcube/tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def test_slice_away_independent_axis(basic_meta):
axes["d"] -= 1
axes["e"] -= 1
axes["g"] = (0, 2)
shape = meta.data_shape[1:]
expected = NDMeta(values, comments, axes)
assert_metas_equal(output, expected)

Expand All @@ -108,7 +107,6 @@ def test_slice_away_independent_and_dependent_axis(basic_meta):
axes["c"] = 1
axes["d"] = 1
axes["g"] = 1
shape = meta.data_shape[2:]
expected = NDMeta(values, comments, axes)
assert_metas_equal(output, expected)

Expand Down

0 comments on commit fb788f7

Please sign in to comment.