Skip to content

Commit 3cbe0ba

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b876f1a commit 3cbe0ba

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

nwbinspector/checks/images.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ def check_order_of_images_unique(images: Images):
1010
if images.order_of_images is None:
1111
return
1212
if not len(set(images.order_of_images)) == len(images.order_of_images):
13-
return InspectorMessage(
14-
message="order_of_images should have unique values."
15-
)
13+
return InspectorMessage(message="order_of_images should have unique values.")
1614

1715

1816
@register_check(importance=Importance.BEST_PRACTICE_VIOLATION, neurodata_type=Images)
@@ -22,5 +20,5 @@ def check_order_of_images_len(images: Images):
2220
if not len(images.order_of_images) == len(images.images):
2321
return InspectorMessage(
2422
message=f"Length of order_of_images ({len(images.order_of_images)}) does not match the number of images ("
25-
f"{len(images.images)})."
26-
)
23+
f"{len(images.images)})."
24+
)

tests/unit_tests/test_images.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,3 @@ def test_pass_check_order_of_images_len():
4343
images = Images(name="my_images", images=imgs, order_of_images=img_refs)
4444

4545
assert check_order_of_images_len(images) is None
46-
47-
48-

0 commit comments

Comments
 (0)