regeirk / pycwt

A Python module for continuous wavelet spectral analysis. It includes a collection of routines for wavelet transform and statistical analysis via FFT algorithm. In addition, the module also includes cross-wavelet transforms, wavelet coherence tests and sample scripts.
http://regeirk.github.io/pycwt/
Other
293 stars 104 forks source link

updated docstring to indicate use of sig keyword #34

Closed anielsen001 closed 3 years ago

anielsen001 commented 4 years ago

In the wct function, the significance_level key word is an input. However, when the function runs, it checks for the variable sig which never exists, causing the function to error.

anielsen001 commented 4 years ago

I was mistaken about the sig value, because it was not listed in the doc string and I just set significance_level = None to try and bypass the significance calculation. To address this, I updated the docstring, an I moved two calculations using ar1 into the if statement since they are not needed unless the significance is computed.

regeirk commented 3 years ago

Thank you for the updates :)