question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spectral_connectivity( ) issue

See original GitHub issue

hi, guys , i have a puzzle abount function spectral_connectivity( ).When i run this function on my own epochs data with the parameters like

cwt_freqs=np.arange(8,13,0.5)
cwt_n_cycles=1
con1,freqs1,times1,n_epochs1=spectral_connectivity(
    data['button_tone'],method='coh',mode='cwt_morlet',sfreq=1024, 
    cwt_freqs=cwt_freqs,cwt_n_cycles=cwt_n_cycles, n_jobs=1)

, an error happend with words like " ValueError: too many values to unpack (expected 4)" And i do not know how to deal with it , could some one help me ,plz. image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Charlesi8commented, Jan 20, 2020
data=mne.read_epochs(x)     # x is a *.fif file
data1=data['button_tone']   
#'button_tone 'is one of the conditions ; the shape of data1 is like (100,65,3072)  ( n_epochs,n_channels,n_samples)

cwt_freqs=np.arange(8,13,0.5)
cwt_n_cycles=1
con,freqs,times,n_epochs=spectral_connectivity(data1,method='coh',mode='cwt_morlet',sfreq=1024, cwt_freqs=cwt_freqs,cwt_n_cycles=cwt_n_cycles, n_jobs=1)

And one error happened as i said above

0reactions
mmagnuskicommented, Jan 21, 2020

@Charlesi8 glad to help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spectrum Internet Not Working? Try These Simple Fixes
Fixing Spectrum Wi-Fi issues · Unplug your Spectrum modem from the wall. · Unplug any cords connecting your modem and router. · Wait...
Read more >
Outage Information and Troubleshooting | Spectrum Support
If you see a "Connection Issue" status next to your equipment, select Troubleshoot. Select Restart Equipment next to a device. Select Restart Equipment...
Read more >
Spectrum outages reported in the last 24 hours - Downdetector
Real-time outage overview for Spectrum. Problems with your TV signal, phone issues or is internet down? Here you see what is going on....
Read more >
Eden-Kramer-Lab/spectral_connectivity - GitHub
spectral_connectivity is a Python software package that computes multitaper spectral estimates and frequency-domain brain connectivity measures such as ...
Read more >
Spectral connectivity on single epoch - MNE Forum - Discourse
Option 2: SpectralConnectivity function. In this case the error seems to be the parameters of the input array as it asks for a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found