We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 210a063 commit 4b24debCopy full SHA for 4b24deb
generation/maisi/scripts/find_masks.py
@@ -102,7 +102,7 @@ def find_masks(
102
db = json.load(f)
103
104
# select candidate_masks
105
- candidate_masks = []
+ candidate_masks = []
106
for _item in db:
107
if not set(anatomy_list).issubset(_item["label_list"]):
108
continue
@@ -111,7 +111,7 @@ def find_masks(
111
keep_mask = True
112
113
# extract region indice (top_index and bottom_index) for candidate mask
114
- include_body_region = ("top_region_index" in _item.keys())
+ include_body_region = "top_region_index" in _item.keys()
115
if include_body_region:
116
top_index = [index for index, element in enumerate(_item["top_region_index"]) if element != 0]
117
top_index = top_index[0]
0 commit comments