mne-tools / mne-tools/mne-python

Warning in compute covariance

Open
#6,527 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

compute_covariance(epochs) generates RuntimeWarning...

Something went wrong in the data-driven estimation of the data rank as it exceeds the theoretical rank from the info (298 > 43). Consider setting rank to "auto" or setting it explicitly as an integer.

compute_covariance(epochs, rank='full') throws ValueError as rank must be 'full' or 'info'. What exactly is the RuntimeWarning referring to? method argument input or instance of epochs if someone could clarify I'm happy to open PR to fix messaging/docs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the compute_covariance(epochs) entry point and reproduce the RuntimeWarning, comparing it with the rank='full' ValueError described in the issue. Trace which argument or estimation step emits the warning; done when its meaning and the supported rank behavior are clearly documented or communicated by the relevant messaging.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.