Repository navigation
Require representation input to be Quantity, and backward-compatibility layer - #26
Conversation
…ehavior of low-level frame classes
|
@eteq - this is almost completely functional, but there are a few test failures. Before I fix them, I just wanted to check whether it's ok for frames to have positional arguments for the coordinates? |
|
I'm working on the failures under the assumption that positional arguments are ok (based on the API document) |
|
So just to be clear, this PR means that:
I believe this actually provides a mostly backward-compatibility layer for 0.4. We could actually try and run the old test suite on it to check. |
|
All current tests pass! A few documentation (rst) tests fail, but the documentation needs updating anyway. |
|
Also, one nice thing here is that the backward-compatibility layer is easy to remove in the next version - we just need to remove |
There was a problem hiding this comment.
actually, can you replace this with something like:
UnitSphericalRepresentation(lon=Angle('2h6m3.3s'), lat=Angle('0.1rad'))
just so we make sure this use case is addressed?
|
Looks generally good, @astrofrog (a few minor comments inline)! But it looks like you did not change |
|
@eteq - I can change |
|
Ahh, I see. Yeah, sounds good. |
|
@eteq - hmm, it seems that the code was relying on being able to pass non-quantities to the cartesian class, e.g.: Maybe I should revert this change for now? I'm getting 160+ failures now... |
|
In the above case, |
|
Actually I think the fix is easy... |
|
@eteq - this is ready for review/merging. All tests pass (except a few in the docs, which is to be expected) |
|
Cool, thanks. Merging! |
Require representation input to be Quantity, and backward-compatibility layer
No description provided.