[Mne_analysis] mne.io.brainvision: "Append" not working
Alexandre Gramfort
alexandre.gramfort at telecom-paristech.fr
Sun Nov 30 02:38:16 EST 2014
hi Moritz,
thanks for the bug report and the suggested fix.
I think it has been fixed recently. Can you try with the
current master version?
Best,
Alex
On Sat, Nov 29, 2014 at 11:04 PM, Moritz Tacke <moritz.tacke at gmail.com> wrote:
> Hi,
>
> I am trying to use mne-python on some brainvision files. The "append"
> command fails on the raw datasets. It seems as if there are some data
> entries missing in the files. I am using a workaround by patching the
> structures. The used function is:
>
> def patchBrainvisionRaw(raw_struct):
> """
> Workaround for appending
>
> """
> raw_struct._first_samps = numpy.array([raw_struct.first_samp])
> raw_struct._last_samps = numpy.array([raw_struct.last_samp])
> raw_struct._raw_lengths = 1 + raw_struct.last_samp -
> raw_struct.first_samp
> raw_struct.cals = numpy.array([])
> raw_struct.rawdirs = numpy.array([])
> raw_struct.orig_format = 'int'
>
> Now, the "append" call succeeds. Is there another (maybe: correct) way to
> append two of these raw structs?
> Greetings,
>
> Moritz
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.
>
More information about the Mne_analysis
mailing list