-
Notifications
You must be signed in to change notification settings - Fork 70
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
properly save and retrieve a SkyCoord object when it's a scalar or N-D array #136
Conversation
… when it's a scalar or N-D array
Codecov Report
@@ Coverage Diff @@
## master #136 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 576 576
=========================================
Hits 576 576
Continue to review full report at Codecov.
|
Huh, surprising that I did not catch that Can you make a PR with the appropirate changes to the |
okay. it's done. hopefully, I get everything right. |
add another small change related to #37 (which shows up again in v4). the v3 branch seems to be fine. |
@r-xue Thanks for that. The last commit you added will be reverted, as it not only does not belong to this PR, but also because I very specifically reintroduced that change in v4. So, for that reason, I simply let |
yeah. I agree. keep consistency is important. Thank you for the excellent work. |
The current implementation always saves the SkyCoord object as an Nx2 array and doesn't work well if the coordinate value is a scalar or high-dimensional array
This PR is supposed to fix the issue.
test_astropy.py
is also slightly updated to reflect the change.