-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Looking at #7928 , there are a lot of warnings like this:
astropy/nddata/mixins/tests/test_ndarithmetic.py::...
.../astropy/units/quantity.py:858: DeprecationWarning: elementwise comparison failed;
this will raise an error in the future.
return super().__ne__(other)
Which brought me to
astropy/astropy/units/quantity.py
Lines 855 to 860 in 33962dd
| def __ne__(self, other): | |
| try: | |
| try: | |
| return super().__ne__(other) | |
| except DeprecationWarning: | |
| return np.not_equal(self, other) |
Perhaps try ... except ... is not working as expected? Why not use catch_warnings? @mhvk , do you know?
Reactions are currently unavailable