We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The WCS.wcs.cunit attribute uses a class called UnitListProxy - and it seems that class doesn't correctly define __eq__:
WCS.wcs.cunit
UnitListProxy
__eq__
In [47]: wcs = WCS(naxis=2) In [48]: wcs.wcs.cunit = ['deg', 'm/s'] In [49]: wcs.wcs.cunit == wcs.wcs.cunit Out[49]: False
I think this should be treated as a bug.
The text was updated successfully, but these errors were encountered:
@astrofrog I want to resolve this bug but I can't able to find definition of class UnitListProxy can you please give some elaboration about this class
Sorry, something went wrong.
@himanshupathak21061998 - the class is defined in https://github.com/astropy/astropy/blob/master/astropy/wcs/src/unit_list_proxy.c (it's written in C)
Successfully merging a pull request may close this issue.
The
WCS.wcs.cunit
attribute uses a class calledUnitListProxy
- and it seems that class doesn't correctly define__eq__
:I think this should be treated as a bug.
The text was updated successfully, but these errors were encountered: