Skip to content

Commit 4b24deb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 210a063 commit 4b24deb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generation/maisi/scripts/find_masks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def find_masks(
102102
db = json.load(f)
103103

104104
# select candidate_masks
105-
candidate_masks = []
105+
candidate_masks = []
106106
for _item in db:
107107
if not set(anatomy_list).issubset(_item["label_list"]):
108108
continue
@@ -111,7 +111,7 @@ def find_masks(
111111
keep_mask = True
112112

113113
# extract region indice (top_index and bottom_index) for candidate mask
114-
include_body_region = ("top_region_index" in _item.keys())
114+
include_body_region = "top_region_index" in _item.keys()
115115
if include_body_region:
116116
top_index = [index for index, element in enumerate(_item["top_region_index"]) if element != 0]
117117
top_index = top_index[0]

0 commit comments

Comments
 (0)