Skip to content

Commit 84c8e46

Browse files
committed
Run ruff.
1 parent 56cbb5c commit 84c8e46

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

niworkflows/utils/spaces.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ def __attrs_post_init__(self):
238238
'specification.' % self.spec['volspace']
239239
)
240240

241-
if str(self.spec["volcohort"]) not in _cohorts:
241+
if str(self.spec['volcohort']) not in _cohorts:
242242
raise ValueError(
243243
'standard space "%s" does not contain any cohort '
244-
'named "%s".' % (self.spec["volspace"], self.spec["volcohort"])
244+
'named "%s".' % (self.spec['volspace'], self.spec['volcohort'])
245245
)
246246
elif _cohorts:
247247
_cohorts = ', '.join(['"cohort-%s"' % c for c in _cohorts])
@@ -267,12 +267,12 @@ def fullname(self):
267267
name = self.space
268268

269269
if 'cohort' in self.spec:
270-
name += f':cohort-{self.spec['cohort']}'
270+
name += f':cohort-{self.spec["cohort"]}'
271271

272272
if 'volspace' in self.spec:
273-
name += f'::{self.spec['volspace']}'
273+
name += f'::{self.spec["volspace"]}'
274274
if 'volcohort' in self.spec:
275-
name += f':cohort-{self.spec['volcohort']}'
275+
name += f':cohort-{self.spec["volcohort"]}'
276276

277277
return name
278278

@@ -732,7 +732,7 @@ def get_standard(self, full_spec=False, dim=(2, 3), cifti=(True, False)):
732732
if not full_spec:
733733
return out
734734

735-
out = [s for s in out if hasspec("res", s.spec) or hasspec("den", s.spec)]
735+
out = [s for s in out if hasspec('res', s.spec) or hasspec('den', s.spec)]
736736
return out
737737

738738
def get_nonstandard(self, full_spec=False, dim=(2, 3), cifti=(True, False)):

0 commit comments

Comments
 (0)