Skip to content

Commit

Permalink
Update fields returned in pet-linear for prov compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-rifai committed Mar 14, 2022
1 parent 54b3ffe commit 07204cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions clinica/engine/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@ def log_prov(prov_log_record, out_file, out_dir):

from clinica.engine.prov_utils import write_prov_file

out_file = out_file + "*"
out_files_paths = []

if isinstance(out_file, list):
for x in out_file:
out_files_paths.extend(list(Path(out_dir).rglob(x)))
elif isinstance(out_file, str):
out_files_paths = list(Path(out_dir).rglob(out_file))

out_files_paths = list(Path(out_dir).rglob(Path(out_file).name))

for path_file in out_files_paths:
write_prov_file(prov_log_record, path_file)
Expand Down
6 changes: 3 additions & 3 deletions clinica/pipelines/pet_linear/pet_linear_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def get_output_fields(self):
A list of (string) output fields name.
"""
return [
"registered_pet",
"transform_mat",
"registered_pet_in_t1w",
"suvr_pet",
"affine_mat",
"PETinT1w",
] # Fill here the list

def build_input_node(self):
Expand Down

0 comments on commit 07204cc

Please sign in to comment.