Repository navigation
Fix HDU detection in convenience methods (via _makehdu) - #8666
Conversation
|
cc @mcara |
|
Puh, these are those kind of consequences that make I don't have the time atm to do a proper in-depth review. However if it fixes the reported problem and the test suite doesn't complain it seems like a clear improvement. |
|
I could also revert the change to |
|
@jaytmiller , can you please confirm that works for you? |
|
Well, that's weird. There is a |
|
I believe that failure got fixed by #8669 |
|
@saimn - can you rebase? Thanks! |
Codecov Report
@@ Coverage Diff @@
## master #8666 +/- ##
==========================================
+ Coverage 86.95% 86.95% +<.01%
==========================================
Files 399 399
Lines 59410 59413 +3
Branches 1100 1100
==========================================
+ Hits 51658 51662 +4
+ Misses 7111 7110 -1
Partials 641 641
Continue to review full report at Codecov.
|
|
@astrofrog - Done. |
|
Anyone to review/approve? 🙏 |
pllim
left a comment
There was a problem hiding this comment.
No response from Todd, but since he uses astropy dev in his workflow, we'll just go ahead and merge and I am sure he'll find out soon enough. #yolo
|
Sorry, I looked this over and was relatively convinced it should work based on the regression test case. |
|
Doc build is still failing after rebase and its log indicates that it went over the max 10 minutes limit. Does this PR somehow make the doc build too long? @astrofrog or @Cadair , how do we increase the limit on CircleCI? |
|
This PR should not increase the build time, and the error looks similar to the ones with the recent mpl issue. I can try a new rebase to be sure? |
Feel free to try again. Thanks! (I was playing with the CircleCI buttons and accidentally restarted everything... ops.) |
|
All builds pass! Merging since it was approved :) |
Fix HDU detection in convenience methods (via _makehdu)
Fix #8660: In 6800eec (EDIT: xref #8502) I removed
_BaseHDU.__new__because when reading from a FITS file this HDU detection was done twice. Instead of reverting this commit I'm adding a new classmethod which can be used to explicitly call the class detection, which allows to avoid the duplicated detection when reading from a file.@MSeifert04 - do you see any drawback with this approach ?