Skip to content

BUG: signal: fix get_window argument handling and add tests.#13879

Merged
rgommers merged 2 commits intoscipy:masterfrom
AtsushiSakai:fix_get_window_argument_handling
Apr 23, 2021
Merged

BUG: signal: fix get_window argument handling and add tests.#13879
rgommers merged 2 commits intoscipy:masterfrom
AtsushiSakai:fix_get_window_argument_handling

Conversation

@AtsushiSakai
Copy link
Copy Markdown
Member

Reference issue

fix #13878

What does this implement/fix?

I fixed signal.get_window argument handling.
Current code assume the optional argument sym is located at second argument, but scipy.signal.windows.taylor one does not, it is fifth argument.
So, I changed sym argument handling to optional argument handling.

Also, I added tests for get_window to check all window functions which needs only one argument works correctly.

@AtsushiSakai AtsushiSakai added defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.signal labels Apr 17, 2021
Comment thread scipy/signal/tests/test_windows.py Outdated
@ilayn ilayn added this to the 1.7.0 milestone Apr 17, 2021
Copy link
Copy Markdown
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM too, thanks @AtsushiSakai. And thanks @ilayn for reviewing.

@rgommers rgommers merged commit b5495d8 into scipy:master Apr 23, 2021
@AtsushiSakai AtsushiSakai deleted the fix_get_window_argument_handling branch April 23, 2021 10:22
patnr added a commit to patnr/scipy that referenced this pull request May 3, 2021
* master: (164 commits)
  DOC: Add Karl Pearson's reference to chi-square test (scipy#13971)
  BLD: fix build warnings for causal/anticausal pointers in ndimage
  MAINT: stats: Fix unused imports and a few other issues related to imports.
  DOC: fix typo
  MAINT: Remove duplicate calculations in sokalmichener
  BUG: spatial: fix weight handling of `distance.sokalmichener`.
  DOC: update Readme (scipy#13910)
  MAINT: QMCEngine d input validation (scipy#13940)
  MAINT: forward port 1.6.3 relnotes
  REL: add PEP 621 (project metadata in pyproject.toml) support
  EHN: signal: make `get_window` supports `general_cosine` and `general_hamming` window functions. (scipy#13934)
  ENH/DOC: pydata sphinx theme polishing (scipy#13814)
  DOC/MAINT: Add copyright notice to qmc.primes_from_2_to (scipy#13927)
  BUG: DOC: signal: fix need argument config and add missing doc link for `signal.get_window`
  DOC: fix subsets docstring (scipy#13926)
  BUG: signal: fix get_window argument handling and add tests. (scipy#13879)
  ENH: stats: add 'alternative' parameter to ansari (scipy#13650)
  BUG: Reactivate conda environment in init
  MAINT: use dict built-in rather than OrderedDict
  Revert "CI: Add nightly release of NumPy in linux workflows (scipy#13876)" (scipy#13909)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.signal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: signal.get_window argument handling issue

3 participants