-
Notifications
You must be signed in to change notification settings - Fork 7
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
ENH: add a conditional to adapt behaviour depending on astropy's version #60
Conversation
9188c56
to
68a74ea
Compare
Codecov Report
@@ Coverage Diff @@
## master #60 +/- ##
==========================================
+ Coverage 35.01% 35.52% +0.50%
==========================================
Files 28 28
Lines 8264 8267 +3
==========================================
+ Hits 2894 2937 +43
+ Misses 5370 5330 -40
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
68a74ea
to
282e12f
Compare
Indeed, this looks like a good way to support older Astropy versions and to keep commentary cards when possible. Do you think it would be worth adding a warning saying that commentary cards are removed from the header when using Astropy < 5.0 ? |
Excellent idea, feel free to push to this branch if you want to add this warning ! |
@vandalt you're still welcome to push here if you're interested. It's also ok if you're not. Keep me tuned :) |
Hello @neutrinoceros, just a few questions:
|
I didn't realize you'd need explicit permission to edit my fork (which makes sense actually). I'd rather you go with a follow up PR then.
Damn it I forgot about that. This is a big weakness in AMICAL because it has very undesirable side effects: the state of the I'll open an issue from this comment. |
Sounds good. I'll make a follow-up PR this weekend (astropy 5.0 feature freeze is this Friday so it will be a good time to test) and use |
superseded by #73 |
likely a better approach than #59
closes #31
follow up to #45
This should not be merged before Astropy 5.0.0 is out and we can properly test against it.
Note that I'm adding
packaging
as a hard dependency to parse versions. This is the officially recommended way to do this after the equivalent functionality in setuptools was deprecated and targeted for removal in Python 3.12 (expected late 2023).