Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong confidence interval shape in mt_coherence() #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Xunius
Copy link

@Xunius Xunius commented Oct 21, 2021

In multitaper.py, the mt_coherence() function assigned an empty array
for the desired confidence interval using mt.empty(nf, 2) at line 600.
This gave an 1d complex array of length nf, because the argument 2 is passed
to the complex=False kwarg of the mt.empty() method.

The correct call should be mt.empty((nf, 2))

Related to issue #32

In `multitaper.py`, the `mt_coherence()` function assigned an empty array
for the desired confidence interval using `mt.empty(nf, 2)` at line 600.
This gave an 1d complex array of length nf, because the argument `2` is passed
to the `complex=False` kwarg of the `mt.empty()` method.

The correct call should be `mt.empty((nf, 2))`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant