[Mne_analysis] mne.io.brainvision: "Append" not working

Moritz Tacke moritz.tacke at gmail.com
Mon Dec 1 04:03:57 EST 2014
Search archives:

Thank you - the new version is indeed working

On Sun, Nov 30, 2014 at 8:38 AM, Alexandre Gramfort
<alexandre.gramfort at telecom-paristech.fr> wrote:
> 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.
>>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis



More information about the Mne_analysis mailing list