Problem with single_trial_power()

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141027/2ca2fbbf/attachment.html

hi Maria,

can you share a script that has this problem on the mne sample data?

Alex

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

> 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
> Mne_analysis Info Page
>
>
> 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
> MyComplianceReport.com: Compliance and Ethics Reporting . 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
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141027/1ae8c28b/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_cluster_stats_time_frequency.py
Type: application/octet-stream
Size: 5503 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141027/1ae8c28b/attachment.obj

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

Hi,

Many thanks Alex!
This solved the problem.

-Maria

2014-10-27 10:25 GMT+02:00 Maria Hakonen <maria.hakonen at gmail.com>:

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

> 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
> Mne_analysis Info Page
>
>
> 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
> MyComplianceReport.com: Compliance and Ethics Reporting . 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
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141027/382efcf8/attachment.html