Skip to content

Commit

Permalink
FIX : force float sfreq in resample
Browse files Browse the repository at this point in the history
  • Loading branch information
agramfort committed Feb 29, 2016
1 parent 00d3ba4 commit 5df659b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ def resample(self, sfreq, npad=100, window='boxcar', n_jobs=1,
inst._data = resample(inst._data, sfreq, o_sfreq, npad,
n_jobs=n_jobs)
# adjust indirectly affected variables
inst.info['sfreq'] = sfreq
inst.info['sfreq'] = float(sfreq)
inst.times = (np.arange(inst._data.shape[2], dtype=np.float) /
sfreq + inst.times[0])
return inst
Expand Down

0 comments on commit 5df659b

Please sign in to comment.