Skip to content

Commit

Permalink
Update more.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 3, 2024
1 parent 73a735f commit 82c996f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ ignore = [
"S311", # We are not using random for cryptographic purposes
"ISC001",
"S603",
"PT023",
"S113",
"S202",
"S602",
]

[tool.ruff.lint.flake8-quotes]
Expand Down
4 changes: 3 additions & 1 deletion src/fmripost_rapidtide/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def main():

config.loggers.workflow.log(
15,
'\n'.join(['fMRIPost-Rapidtide config:'] + [f'\t\t{s}' for s in config.dumps().splitlines()]),
'\n'.join(
['fMRIPost-Rapidtide config:'] + [f'\t\t{s}' for s in config.dumps().splitlines()]
),
)
config.loggers.workflow.log(25, 'fMRIPost-Rapidtide started!')
errno = 1 # Default is error exit unless otherwise set
Expand Down
5 changes: 4 additions & 1 deletion src/fmripost_rapidtide/cli/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def check_latest():
if latest is None or outdated is True:
response = None
with suppress(Exception):
response = requests.get(url='https://pypi.org/pypi/fmripost_rapidtide/json', timeout=1.0)
response = requests.get(
url='https://pypi.org/pypi/fmripost_rapidtide/json',
timeout=1.0,
)

if response and response.status_code == 200:
versions = [Version(rel) for rel in response.json()['releases'].keys()]
Expand Down
4 changes: 3 additions & 1 deletion src/fmripost_rapidtide/interfaces/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
bids_config = Config.load('bids')
deriv_config = Config.load('derivatives')

fmripost_rapidtide_entities = {v['name']: v['pattern'] for v in fmripost_rapidtide_spec['entities']}
fmripost_rapidtide_entities = {
v['name']: v['pattern'] for v in fmripost_rapidtide_spec['entities']
}
merged_entities = {**bids_config.entities, **deriv_config.entities}
merged_entities = {k: v.pattern for k, v in merged_entities.items()}
merged_entities = {**merged_entities, **fmripost_rapidtide_entities}
Expand Down
2 changes: 0 additions & 2 deletions src/fmripost_rapidtide/interfaces/nilearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import os

import numpy as np
from nipype.interfaces.base import (
BaseInterfaceInputSpec,
File,
SimpleInterface,
TraitedSpec,
traits,
)
from nipype.interfaces.nilearn import NilearnBaseInterface

Expand Down
1 change: 0 additions & 1 deletion src/fmripost_rapidtide/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

from fmripost_rapidtide import config
from fmripost_rapidtide.utils.utils import _get_wf_name, update_dict
from fmripost_rapidtide.workflows.resampling import init_resample_volumetric_wf


def init_fmripost_rapidtide_wf():
Expand Down

0 comments on commit 82c996f

Please sign in to comment.