-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
logging with no add_keywords #68
Comments
My understanding of the logging discussion was that the preference was for not automatically adding logging information if the user didn't supply it. If we want to add this in, I can -- it would only require changing what value the decorator provides as the default. My personal preference would be to have some sort of logging built in, with the ability for the user determined to leave no trace of what they've done to opt out by calling with |
I would agree. Adding an extra keyword to the header shouldn't break anything and I think it enhances the data product as you can track what you have done to it. Logging wasn't entirely intuitive to me, so I would highlight it as something that needs to have plenty of examples in the documentation. Although I do like the non-intrusiveness of it as well. |
Tried implementing this morning hit one (at least) roadblock: what is the sensible value to put in for an argument that is a
Apparently I'm not so creative this morning because that is all I came up with. To be clear, there is no technical problem with coming up with the parameter values, and one easy out is the add the |
Will simply skip any |
For right now, I think that's the way to go until we see how it works |
I hit another wall here...this time the problem is FITS. There are two FITS conventions that come into play:
The problem: As it stands an error gets raised if you try (a really simple hack to Alternatives:
@crawfordsm -- I'll give this another try after moving away from fits Header as the metadata (turns out that isn't completely case-insensitive anyway...HIERARCH keywords are case sensitive). Then all the FITS stuff can be refactored into the |
I would avoid messing with io.fits as we don't want to make files which aren't FITS compliant. Another option would be that we put in these keywords but any keyword is stripped out before they are written out to FITS. Not ideal really. I think my preferred option would be to have a default 8-letter or less keyword. This could also be set to None if people want to turn off logging. |
Closed by #89 |
Logging does not seem to behave as expected in the api. In the api, we suggest that the if add_keyword is not specified, the task name and parameters should be added to meta, but that does not seem like the case right now.
The text was updated successfully, but these errors were encountered: