Repository navigation
Expose Header.strip as a public method - #11174
Conversation
pllim
left a comment
There was a problem hiding this comment.
Was there a reason for it to be private in the first place? Is there a reason why it should be public now? Will people misuse it and then think it is a bug instead of a feature?
Because it's useful to remove the FITS structural keywords before updating another header with the stripped one. I don't see how it could be a "bug". Also it's currently possible to call |
|
LGTM. I think maybe a nice follow-up would be to change the list of keywords to remove to a global list (including some "patterns" e.g. for NAXIS type keywords) and allow this method to take a list of additional keywords to either remove or keep besides the defaults. |
This method is currently private though it can be useful to remove the most common structural keywords.