Skip to content

Commit

Permalink
qsiprep_dir --> output_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Aug 12, 2024
1 parent e4f6ea5 commit 497df16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion qsiprep/cli/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def build_workflow(config_file, exec_mode, retval):
build_log.log(25, f"\n{' ' * 9}".join(banner))

# warn if older results exist: check for dataset_description.json in output folder
# msg = check_pipeline_version("QSIPrep", version, qsiprep_dir / "dataset_description.json")
# msg = check_pipeline_version("QSIPrep", version, output_dir / "dataset_description.json")
# if msg is not None:
# build_log.warning(msg)

Expand Down
2 changes: 1 addition & 1 deletion qsiprep/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
This module implements the memory structures to keep a consistent, singleton config.
Settings are passed across processes via filesystem, and a copy of the settings for
each run and subject is left under
``<qsiprep_dir>/sub-<participant_id>/log/<run_unique_id>/qsiprep.toml``.
``<output_dir>/sub-<participant_id>/log/<run_unique_id>/qsiprep.toml``.
Settings are stored using :abbr:`ToML (Tom's Markup Language)`.
The module has a :py:func:`~qsiprep.config.to_filename` function to allow writing out
the settings to hard disk in *ToML* format, which looks like:
Expand Down
6 changes: 3 additions & 3 deletions qsiprep/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ def get_test_data_path():
return os.path.abspath(os.path.join(os.path.dirname(__file__), "data") + os.path.sep)


def check_generated_files(qsiprep_dir, output_list_file, optional_output_list_file):
def check_generated_files(output_dir, output_list_file, optional_output_list_file):
"""Compare files generated by qsiprep with a list of expected files."""
found_files = sorted(glob(os.path.join(qsiprep_dir, "**/*"), recursive=True))
found_files = [os.path.relpath(f, qsiprep_dir) for f in found_files]
found_files = sorted(glob(os.path.join(output_dir, "**/*"), recursive=True))
found_files = [os.path.relpath(f, output_dir) for f in found_files]

# Ignore figures
found_files = sorted(list(set([f for f in found_files if "figures" not in f])))
Expand Down

0 comments on commit 497df16

Please sign in to comment.