mtspec icon indicating copy to clipboard operation
mtspec copied to clipboard

fix wrong confidence interval shape in mt_coherence()

Open Xunius opened this issue 3 years ago • 0 comments

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 https://github.com/krischer/mtspec/issues/32

Xunius avatar Oct 21 '21 03:10 Xunius