Skip to content

Commit

Permalink
Fix style issues flagged by ruff.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed May 5, 2024
1 parent 468064b commit 30695ca
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/fmripost_aroma/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# https://www.nipreps.org/community/licensing/
#
"""Parser."""

import sys

from fmripost_aroma import config
Expand All @@ -31,6 +32,7 @@ def _build_parser(**kwargs):
``kwargs`` are passed to ``argparse.ArgumentParser`` (mainly useful for debugging).
"""

from argparse import Action, ArgumentDefaultsHelpFormatter, ArgumentParser
from functools import partial
from pathlib import Path
Expand Down Expand Up @@ -464,6 +466,7 @@ def _bids_filter(value, parser):

def parse_args(args=None, namespace=None):
"""Parse args and run further checks on the command line."""

import logging

parser = _build_parser()
Expand Down
2 changes: 2 additions & 0 deletions src/fmripost_aroma/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
# https://www.nipreps.org/community/licensing/
#
"""fMRI preprocessing workflow."""

from fmripost_aroma import config

EXITCODE: int = -1


def main():
"""Entry point."""

import gc
import sys
from multiprocessing import Manager, Process
Expand Down
1 change: 1 addition & 0 deletions src/fmripost_aroma/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
:py:class:`~bids.layout.BIDSLayout`, etc.)
"""

import os
from multiprocessing import set_start_method

Expand Down
4 changes: 3 additions & 1 deletion src/fmripost_aroma/workflows/aroma.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# https://www.nipreps.org/community/licensing/
#
"""fMRIPost-AROMA workflows to run ICA-AROMA."""

import os

from nipype.interfaces import utility as niu
Expand Down Expand Up @@ -124,6 +125,7 @@ def init_ica_aroma_wf(
nonaggr_denoised_file
BOLD series with non-aggressive ICA-AROMA denoising applied
"""

from nipype.interfaces import fsl
from niworkflows.engine.workflows import LiterateWorkflow as Workflow
from niworkflows.interfaces.utility import TSV2JSON
Expand All @@ -137,7 +139,7 @@ def init_ica_aroma_wf(
[ICA-AROMA, @aroma] was performed on the *preprocessed BOLD on MNI space*
time-series after removal of non-steady state volumes and spatial smoothing
with an isotropic, Gaussian kernel of 6mm FWHM (full-width half-maximum).
Corresponding "non-aggresively" denoised runs were produced after such
Corresponding "non-aggressively" denoised runs were produced after such
smoothing.
Additionally, the "aggressive" noise-regressors were collected and placed
in the corresponding confounds file.
Expand Down
1 change: 1 addition & 0 deletions src/fmripost_aroma/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
.. autofunction:: init_single_subject_wf
"""

import os
import sys
import warnings
Expand Down

0 comments on commit 30695ca

Please sign in to comment.