Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Deprecate mlab.{apply_window,stride_repeat}. #13987

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

Merged
merged 1 commit into from
Apr 20, 2019
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Apr 18, 2019

Altogether, they take more than 100 lines of implementation and many
hundred lines of tests, for what amounts to an array multiplication
optionally preceded by calling a user-supplied callable (see how
apply_window is inlined in _spectral_helper; stride_repeat is strictly a
helper for apply_window).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Altogether, they take more than 100 lines of implementation and many
hundred lines of tests, for what amounts to an array multiplication
optionally preceded by calling a user-supplied callable (see how
apply_window is inlined in _spectral_helper; stride_repeat is strictly a
helper for apply_window).
@dstansby
Copy link
Member

Looks good to me. It looks like codecov isn't working for any of your PRs, is there any chance you could take a look into why?

@anntzer
Copy link
Contributor Author

anntzer commented Apr 19, 2019

Actually it's at https://codecov.io/gh/matplotlib/matplotlib/commit/b57c39af1ff295d29cf80bdd227b238106a8b6e8, though I don't know why github did not link it.

@dstansby
Copy link
Member

Odd, I wonder why it's not working just for you?

@dstansby dstansby added this to the v3.2.0 milestone Apr 19, 2019
@@ -520,29 +522,34 @@ def _spectral_helper(x, y=None, NFFT=None, Fs=None, detrend_func=None,
numFreqs = pad_to//2 + 1
scaling_factor = 2.

if not np.iterable(window):
Copy link
Member

Choose a reason for hiding this comment

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

would if callbable(window) make more sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The logic is the same in apply_window, I don't think handling the behavior change is worth it...

Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

Left one comment, 👍 to this going in if it is addressed or not.

@tacaswell tacaswell merged commit a7b0fe9 into matplotlib:master Apr 20, 2019
@anntzer anntzer deleted the mlab branch April 20, 2019 21:09
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.