Skip to content

Commit 07204cc

Browse files
committed
Update fields returned in pet-linear for prov compatibility
1 parent 54b3ffe commit 07204cc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

clinica/engine/provenance.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,14 @@ def log_prov(prov_log_record, out_file, out_dir):
155155

156156
from clinica.engine.prov_utils import write_prov_file
157157

158-
out_file = out_file + "*"
159158
out_files_paths = []
159+
160160
if isinstance(out_file, list):
161161
for x in out_file:
162162
out_files_paths.extend(list(Path(out_dir).rglob(x)))
163163
elif isinstance(out_file, str):
164-
out_files_paths = list(Path(out_dir).rglob(out_file))
164+
165+
out_files_paths = list(Path(out_dir).rglob(Path(out_file).name))
165166

166167
for path_file in out_files_paths:
167168
write_prov_file(prov_log_record, path_file)

clinica/pipelines/pet_linear/pet_linear_pipeline.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def get_output_fields(self):
4343
A list of (string) output fields name.
4444
"""
4545
return [
46-
"registered_pet",
47-
"transform_mat",
48-
"registered_pet_in_t1w",
46+
"suvr_pet",
47+
"affine_mat",
48+
"PETinT1w",
4949
] # Fill here the list
5050

5151
def build_input_node(self):

0 commit comments

Comments
 (0)