[Mne_analysis] Problem with single_trial_power()

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Mon Oct 27 04:37:40 EDT 2014
Search archives:

hi Maria,

in current (unreleased) version Fs has been renamed sfreq.

see dev documentation:

http://martinos.org/mne/dev/generated/mne.time_frequency.single_trial_power.html#mne.time_frequency.single_trial_power

so just rename Fs by sfreq in your script and it should work fine.

HTH
Alex


On Mon, Oct 27, 2014 at 9:25 AM, Maria Hakonen <maria.hakonen at gmail.com> wrote:
> Hi,
>
> The script is as an attachment and is loaded from here:
> http://martinos.org/mne/stable/auto_examples/stats/plot_cluster_stats_time_frequency.html#example-stats-plot-cluster-stats-time-frequency-py
>
> -Maria
>
> 2014-10-27 10:14 GMT+02:00 Alexandre Gramfort
> <alexandre.gramfort at telecom-paristech.fr>:
>>
>> hi Maria,
>>
>> can you share a script that has this problem on the mne sample data?
>>
>> Alex
>>
>>
>> On Mon, Oct 27, 2014 at 8:52 AM, Maria Hakonen <maria.hakonen at gmail.com>
>> wrote:
>> > Hi all,
>> >
>> > I have tried mne python example  plot_cluster_stats_time_frequency.py
>> > with
>> > my own data and with the data used in the example but in both cases the
>> > command
>> >
>> > epochs_power_1 = single_trial_power(data_condition_1,
>> > Fs=Fs,frequencies=frequencies, n_cycles=n_cycles,
>> > use_fft=False,decim=decim)
>> >
>> > gives an error:
>> >
>> > TypeError: single_trial_power() takes at least 3 arguments (6 given)
>> >
>> > Could someone please let me know how to solve this problem? I think that
>> > there should be enough arguments if 3 is needed and I have given 6.
>> >
>> > Thanks,
>> > Maria
>> >
>> > _______________________________________________
>> > 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
>
>
>
> _______________________________________________
> 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