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

test(test_gwf_maw04.py): switch deprecated np.unicode_ -> np.str_ #1886

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

wpbonelli
Copy link
Contributor

NumPy 2.0.0 deprecates np.unicode_ in favor of np.str_, see https://numpy.org/devdocs/release/2.0.0-notes.html#numpy-2-0-python-api-removals


Checklist of items for pull request

  • Added new test or modified an existing test
  • Ran black on new and modified autotests
  • Removed checklist items not relevant to this pull request

@wpbonelli wpbonelli merged commit 19a60d1 into MODFLOW-USGS:develop Jun 19, 2024
18 checks passed
@wpbonelli wpbonelli deleted the numpy2-fixes branch June 19, 2024 02:43
wpbonelli added a commit to modflowpy/flopy that referenced this pull request Jun 19, 2024
Remove NumPy upper bound to close #2153. Also fix `@requires_pkg` usage in `test_export.py`, replace deprecated `itemset` in `mfdatastorage.py`, and bump some CI jobs to Python 3.9.

This PR required updates on the MF6 side:

* test(test_gwf_maw04.py): switch deprecated np.unicode_ -> np.str_ MODFLOW-USGS/modflow6#1886
* test(prt): omit name field (object dtype) from snapshots MODFLOW-USGS/modflow6#1887
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.

None yet

1 participant