-
Notifications
You must be signed in to change notification settings - Fork 3
[MISC]: Header access confusing #92
Copy link
Copy link
Open
Labels
DRAGONSRelated to DRAGONS developmentRelated to DRAGONS developmenthelp wantedExtra attention is neededExtra attention is neededmaintenanceFor maintenance tasksFor maintenance tasksmiscMiscellaneous (not covered by other tags)Miscellaneous (not covered by other tags)
Metadata
Metadata
Assignees
Labels
DRAGONSRelated to DRAGONS developmentRelated to DRAGONS developmenthelp wantedExtra attention is neededExtra attention is neededmaintenanceFor maintenance tasksFor maintenance tasksmiscMiscellaneous (not covered by other tags)Miscellaneous (not covered by other tags)
Contact Details
No response
What happened?
AstroDataobjects have two ways of being accessed:Astrodata.header(returns the PHU + a list of headers regardless ofis_single)AstroData.hdr(returns a list if notis_single,NoneifAstroData.nddatais falseyThis is a bit confusing, and initially
AstroData.headergot deprecated to eventually consolidate behavior. However, these are used differently in different places in DRAGONS, and so it isn't clear what the best path forward is in the long term.AstroData.headeris getting un-deprecated for the time being, in favor of finding a better solution in the future to capture both behaviors.Code of Conduct