Skip to content

Commit

Permalink
RF: use "if a not in b" for "if not a in b"
Browse files Browse the repository at this point in the history
Suggestion by Yarik.
  • Loading branch information
matthew-brett committed Sep 25, 2016
1 parent bc27484 commit b5c858a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipy/modalities/fmri/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def block_amplitudes(name, block_spec, t, hrfs=(glover,),
"""
block_spec = np.asarray(block_spec)
if block_spec.dtype.names is not None:
if not block_spec.dtype.names in (('start', 'end'),
if block_spec.dtype.names not in (('start', 'end'),
('start', 'end', 'amplitude')):
raise ValueError('expecting fields called "start", "end" and '
'(optionally) "amplitude"')
Expand Down

0 comments on commit b5c858a

Please sign in to comment.