Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperrealist committed Oct 10, 2024
1 parent 78931a2 commit e3723ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion databroker/mongo_normalized.py
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,6 @@ def default_validate_shape(key, data, expected_shape):
)
# Pad at the "end" along any dimension that is too short.
padding = []
trimming = []
for actual, expected in zip(data.shape, expected_shape):
margin = expected - actual
# Limit how much padding or trimming we are willing to do.
Expand Down
4 changes: 2 additions & 2 deletions databroker/tests/test_validate_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def post_document(name, doc):
[
((10,), (11, 12)),
((10, 20), (10, 200)),
( (20,20,20,20), (20,21,20,200) ),
( (10,20), (5,20) ),
((20, 20, 20, 20), (20, 21, 20, 200)),
((10, 20), (5, 20)),
],
)
def test_default_validate_shape(tmpdir, shape, expected_shape):
Expand Down

0 comments on commit e3723ea

Please sign in to comment.