Skip to content

Commit

Permalink
Fix style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 4, 2024
1 parent ef884ee commit 9f467bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 25 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.vscode/
.DS_Store
.*.swp
.mypy_cache
.pytest_cache
.ruff_cache
.coverage
_version.py

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
16 changes: 0 additions & 16 deletions src/fmripost_rapidtide/_version.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/fmripost_rapidtide/interfaces/rapidtide.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,6 @@ def _list_outputs(self):
)
outputs['denoised'] = os.path.join(
out_dir,
f'{outputname}_desc-lfofilterCleaned_bold.nii.gz'
f'{outputname}_desc-lfofilterCleaned_bold.nii.gz',
)
return outputs
10 changes: 2 additions & 8 deletions src/fmripost_rapidtide/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ def init_fmripost_rapidtide_wf():
single_subject_wf = init_single_subject_wf(subject_id)

single_subject_wf.config['execution']['crashdump_dir'] = str(
config.execution.output_dir
/ f'sub-{subject_id}'
/ 'log'
/ config.execution.run_uuid
config.execution.output_dir / f'sub-{subject_id}' / 'log' / config.execution.run_uuid
)
for node in single_subject_wf._get_all_nodes():
node.config = deepcopy(single_subject_wf.config)
Expand All @@ -83,10 +80,7 @@ def init_fmripost_rapidtide_wf():

# Dump a copy of the config file into the log directory
log_dir = (
config.execution.output_dir
/ f'sub-{subject_id}'
/ 'log'
/ config.execution.run_uuid
config.execution.output_dir / f'sub-{subject_id}' / 'log' / config.execution.run_uuid
)
log_dir.mkdir(exist_ok=True, parents=True)
config.to_filename(log_dir / 'fmripost_rapidtide.toml')
Expand Down

0 comments on commit 9f467bb

Please sign in to comment.