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_split_merged_climos.py yields deprecation warnings #125

Open
eyvorchuk opened this issue Jun 19, 2020 · 0 comments
Open

test_split_merged_climos.py yields deprecation warnings #125

eyvorchuk opened this issue Jun 19, 2020 · 0 comments
Assignees

Comments

@eyvorchuk
Copy link
Contributor

In a fresh python3 venv with only the packages described in README.md installed, the following warnings occur when running pytest tests/test_split_merged_climos.py:

tests/test_split_merged_climos.py::test_existence[hydromodel_gcm_climos]
tests/test_split_merged_climos.py::test_filenames[hydromodel_gcm_climos]
tests/test_split_merged_climos.py::test_metadata_and_time[hydromodel_gcm_climos]
tests/test_split_merged_climos.py::test_dependent_variables[hydromodel_gcm_climos]
  <string>:6: DeprecationWarning: Calling nonzero on 0d arrays is deprecated, as it behaves surprisingly. Use `atleast_1d(cond).nonzero()` if the old behavior was intended. If the context of this warning is of the form `arr[nonzero(cond)]`, just use `arr[cond]`.

These warnings only occur when tiny_hydromodel_gcm_climos.nc is the input file and pytest==5.4.3, but they go away when pytest==3.6.3.

@eyvorchuk eyvorchuk self-assigned this Jun 19, 2020
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

No branches or pull requests

1 participant