Repository navigation
Coordinates equality comparison fails for array values - #1832
Conversation
|
@embray - this is trivial enough that it probably should be fixed for 0.3.1 ...? I'll try to get to this ASAP, but it really is probably as sample as inserting |
|
Alright, the attached code should do the trick @taldcroft. We may want to consider when equality should actually work for the APE5 architecture, but this is definitely a bug as it works right now. @embray, assuming the tests pass, you can just go ahead and merge this if you're triaging 0.3.1 issues. |
|
@eteq - Should you be checking that the coordinate system (and other relevant metadata like obs_time) is the same? This is a slightly deeper question of what is meant by equality, and technically out of scope for this issue, but this seems wrong to me: |
|
One more little thing: Not sure if you want to make a new issue or just fix it here by |
|
Or maybe this is a bug in |
[ci skip]
|
@taldcroft - I see your point that FK5 and ICRS should not be equal in this case. But I think that's too big of a change to count as a "bug fix", so it will be easier to address this once the APE5 re-factoring is in place (right now there's not a "standard" way to check that two systems are the same because the metadata isn't all the same). So I agree with you that it should be fixed to also check all those framre-related attributes things, but I think it's better to do it in 0.4 when it will be easier and go with a bunch of other changes. As for the error you saw with So @taldcroft, if you agree that these can be dealt with separately, feel free to merge this, as the tests pass now. You can create issues for both of the other items (or just ping me and I can make them). |
Coordinates equality comparison fails for array values
Coordinates equality comparison fails for array values
Needs
np.all()around the comparisons.