Skip to content

Conversation

@seisman
Copy link
Member

@seisman seisman commented Oct 9, 2024

Description of proposed changes

As explained in #3497, calling np.atleast_1d explicitly is no longer necessary after we adopted the numpy.ascontiguousarray function in PR #3492.

This PR removes the np.atleast_1d calls from Figure.text and Session.virtualfile_in.

After this PR, np.atleast_1d is only used in Figure.meca because pandas needs 1-D arrays, e.g.,

{key: np.atleast_1d(value) for key, value in spec.items()}

@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. labels Oct 9, 2024
@seisman seisman added this to the 0.14.0 milestone Oct 9, 2024
@seisman seisman added the run/benchmark Trigger the benchmark workflow in PRs label Oct 9, 2024
@codspeed-hq

This comment was marked as off-topic.

@seisman seisman removed the run/benchmark Trigger the benchmark workflow in PRs label Oct 9, 2024
@michaelgrund michaelgrund added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. labels Oct 9, 2024
@seisman seisman merged commit 7a51128 into main Oct 10, 2024
23 of 24 checks passed
@seisman seisman deleted the remove/atleast_1d branch October 10, 2024 10:22
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants