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

CellGrid __eq__ method no longer uses elementwise comparison #83

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

claytharrison
Copy link
Contributor

If grids are not equal, numpy throws a Deprecation warning for elementwise comparison:

/home/charriso/micromamba/envs/ascat_env/lib/python3.8/site-packages/numpy/ma/core.py:4123: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
  check = compare(sdata, odata)

Using np.array_equal(arr1, arr2) rather than np.all(arr1==arr2) should fix this

If grids are not equal, numpy throws a Deprecation warning for elementwise comparison:
```
/home/charriso/micromamba/envs/ascat_env/lib/python3.8/site-packages/numpy/ma/core.py:4123: DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
  check = compare(sdata, odata)
```
Using np.array_equal(arr1, arr2) rather than np.all(arr1==arr2) should fix this
@wpreimes wpreimes merged commit 83ca3a7 into TUW-GEO:master Nov 21, 2023
12 checks passed
@wpreimes
Copy link
Member

I'm releasing this as v0.5 because there are other, major changes already in the master branch (see CHANGELOG.rst).

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.

2 participants