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

BaseGrid __eq__ method no longer uses elementwise comparison #82

Merged
merged 1 commit into from
Nov 21, 2023

Commits on Nov 20, 2023

  1. BaseGrid __eq__ method no longer uses elementwise comparison

    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
    claytharrison authored Nov 20, 2023
    Configuration menu
    Copy the full SHA
    e1ac6e1 View commit details
    Browse the repository at this point in the history