Skip to content

Commit

Permalink
absolute imports and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcieslak committed Nov 20, 2024
1 parent 48a388c commit b007301
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
4 changes: 3 additions & 1 deletion qsirecon/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,9 @@ def _process_value(value):

cls._processing_list = []
for dwi_relpath, anat_relpath in cls.processing_list:
cls._processing_list.append((cls.layout.get_file(dwi_relpath), cls.layout.get_file(anat_relpath)))
cls._processing_list.append(
(cls.layout.get_file(dwi_relpath), cls.layout.get_file(anat_relpath))
)
cls.processing_list = cls._processing_list

dataset_links = {
Expand Down
18 changes: 4 additions & 14 deletions qsirecon/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,19 @@

from qsirecon.cli import run
from qsirecon.cli.parser import parse_args
from qsirecon.cli.workflow import build_boilerplate, build_workflow
from qsirecon.cli.workflow import build_boilerplate, build_workflow, copy_boilerplate
from qsirecon.reports.core import generate_reports
from qsirecon.tests.utils import (
check_generated_files,
download_test_data,
freesurfer_license,
get_test_data_path,
)


from qsirecon.utils.bids import (
write_derivative_description,
write_bidsignore,
write_atlas_dataset_description,
write_bidsignore,
write_derivative_description,
)
from qsirecon.cli.workflow import copy_boilerplate

from .utils import freesurfer_license

nipype_config.enable_debug_mode()

Expand Down Expand Up @@ -669,12 +665,6 @@ def _run_and_generate(test_name, parameters, test_main=False):
dataset_links=config.execution.dataset_links,
)

# generate_reports(
# output_level=config.execution.report_output_level,
# output_dir=config.execution.output_dir,
# run_uuid=config.execution.run_uuid,
# qsirecon_suffix="",
# )
if config.execution.atlases:
write_atlas_dataset_description(config.execution.output_dir / "atlases")

Expand Down

0 comments on commit b007301

Please sign in to comment.