Skip to content
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

np.mat error using pyMBE #4971

Merged
merged 1 commit into from
Aug 5, 2024
Merged

np.mat error using pyMBE #4971

merged 1 commit into from
Aug 5, 2024

Conversation

Zitzeronion
Copy link
Contributor

@Zitzeronion Zitzeronion commented Aug 5, 2024

Description of changes:

  • replace deprecated np.mat() by np.asmatrix()
    • np.mat() was removed in NumPy 2.0

While running the pyMBE [tutorial](https://github.com/pyMBE-dev/pyMBE/blob/main/tutorials/pyMBE_tutorial.ipynb) the notebook notified me that `np.mat()` is depreciated in numpy and replaced by `np.asmatrix()`. Short check of the numpy 2.0 docs didn't show a `np.mat()` function anymore.
Copy link
Member

@jngrad jngrad left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@jngrad jngrad added Python automerge Merge with kodiak labels Aug 5, 2024
@kodiakhq kodiakhq bot merged commit ba9d2f0 into espressomd:python Aug 5, 2024
10 checks passed
@Zitzeronion Zitzeronion deleted the patch-1 branch August 5, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge with kodiak Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants