You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading a file to RawArray, the get_data() command does only accept int32, but should accept all ints, including int64, as this is the standard dtype for many numpy functions (e.g. np.argmax). It's a small change, I'll propose it.
importnumpyasnpimportmnefrommne.datasetsimportsampledata_path=sample.data_path()
fname=data_path+'/MEG/sample/sample_audvis_raw.fif'ch_idx=np.argmax([0,1,2,3,4])
fif=mne.io.read_raw_fif(fname)
data=fif.get_data(ch_idx)
# TypeError: picks must be a list of int or list of str, got a data type of int64
only happens with 0.18 dev version! 0.17 seems to be fine.
Activity
agramfort commentedon Feb 21, 2019
skjerns commentedon Feb 21, 2019
yes! sorry, should have done that initially:
only happens with 0.18 dev version! 0.17 seems to be fine.
btw 1.5GB for the sample data set is quite huge!