Skip to content

Commit

Permalink
Fix style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Nov 8, 2023
1 parent f721e61 commit fd77220
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions aslprep/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,10 @@ def from_dict(settings, init=True, ignore=None):
def initialize(x):
return init if init in (True, False) else x in init

nipype.load(settings, init=initialize('nipype'), ignore=ignore)
execution.load(settings, init=initialize('execution'), ignore=ignore)
workflow.load(settings, init=initialize('workflow'), ignore=ignore)
seeds.load(settings, init=initialize('seeds'), ignore=ignore)
nipype.load(settings, init=initialize("nipype"), ignore=ignore)
execution.load(settings, init=initialize("execution"), ignore=ignore)
workflow.load(settings, init=initialize("workflow"), ignore=ignore)
seeds.load(settings, init=initialize("seeds"), ignore=ignore)

loggers.init()

Expand Down
9 changes: 4 additions & 5 deletions aslprep/utils/spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
#
"""Utilities for tracking and filtering spaces."""
import argparse
import attr
from collections import defaultdict
from itertools import product

import attr
from templateflow import api as _tfapi

NONSTANDARD_REFERENCES = [
Expand Down Expand Up @@ -235,7 +236,7 @@ def legacyname(self):
return FSAVERAGE_LEGACY[self.spec["den"]]

@space.validator
def _check_name(self, attribute, value):
def _check_name(self, attribute, value): # noqa: U100
if value.startswith("fsaverage"):
return
valid = list(self._standard_spaces) + NONSTANDARD_REFERENCES
Expand Down Expand Up @@ -639,9 +640,7 @@ def get_standard(self, full_spec=False, dim=(2, 3)):
return [
s
for s in self.references
if s.standard
and s.dim in dim
and (hasspec("res", s.spec) or hasspec("den", s.spec))
if s.standard and s.dim in dim and (hasspec("res", s.spec) or hasspec("den", s.spec))
]

def get_nonstandard(self, full_spec=False, dim=(2, 3)):
Expand Down

0 comments on commit fd77220

Please sign in to comment.