Skip to content

Commit

Permalink
ExtractROILabel add default label
Browse files Browse the repository at this point in the history
  • Loading branch information
manuegrx committed Jun 25, 2024
1 parent 81a1d5e commit 810ca51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion mia_processes/bricks/preprocess/others/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,11 @@ def __init__(self):
self.add_trait(
"labels",
traits.List(
traits.Int(), output=False, optional=False, desc=labels_desc
traits.Int(),
output=False,
optional=True,
desc=labels_desc,
default=[1],
),
)
self.add_trait(
Expand Down
2 changes: 0 additions & 2 deletions mia_processes/bricks/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,6 @@ def list_outputs(self, is_plugged=None):
filters = self.rois_list

list_out = []
print("all_ref_files", all_ref_files)
for ref_file in all_ref_files:
for _filter in filters:
if self.starts_with is True and ref_file.startswith(
Expand All @@ -1219,7 +1218,6 @@ def list_outputs(self, is_plugged=None):
list_out.append(
os.path.join(roi_raw_data_dir, ref_file)
)
print("ref_file", ref_file)
self.dict4runtime[
os.path.join(self.lib_dir, ref_file)
] = os.path.join(roi_raw_data_dir, ref_file)
Expand Down

0 comments on commit 810ca51

Please sign in to comment.