8000 Reorder safe_first_element() and _safe_first_finite() code by timhoffm · Pull Request #26819 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Reorder safe_first_element() and _safe_first_finite() code #26819

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
Sep 19, 2023

Conversation

timhoffm
Copy link
Member

This does not change functionality. The code path for safe_first_element is _safe_first_finite(skip_nonfinite=False) which
is separate code block and does not interact with the
skip_nonfinite=True case. IMHO this is more readable.

Also add a comment on the exception handling recently modified in #26806.

This does not change functionality. The code path for
`safe_first_element` is `_safe_first_finite(skip_nonfinite=False)` which
 is separate code block and does not interact with the
 skip_nonfinite=True case. IMHO this is more readable.

 Also add a comment on the exception handling recently modified in matplotlib#26806.
@timhoffm timhoffm added this to the v3.9.0 milestone Sep 18, 2023
@oscargus oscargus merged commit f97647b into matplotlib:main Sep 19, 2023
@timhoffm timhoffm deleted the safe-first-element branch September 19, 2023 09:16
@QuLogic QuLogic changed the title Reoder safe_first_element() and _safe_first_finite() code Reorder safe_first_element() and _safe_first_finite() code Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0