Skip to content

Commit

Permalink
Corrected the behaviour of the paradigm generator
Browse files Browse the repository at this point in the history
  • Loading branch information
bthirion committed Apr 7, 2014
1 parent f864107 commit a6f066d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nipy/modalities/fmri/experimental_paradigm.py
Expand Up @@ -48,13 +48,7 @@ def __init__(self, con_id=None, onset=None, amplitude=None):
self.amplitude = amplitude
if con_id is not None:
self.n_events = len(con_id)
try:
# this is only for backward compatibility:
#if con_id were integers, they become a string
self.con_id = np.array(['c' + str(int(float(c)))
for c in con_id])
except:
self.con_id = np.ravel(np.array(con_id)).astype('str')
self.con_id = np.ravel(np.array(con_id)).astype('str')

if onset is not None:
if len(onset) != self.n_events:
Expand Down

0 comments on commit a6f066d

Please sign in to comment.