Contact Details
No response
What happened?
AstroData objects have two ways of being accessed:
Astrodata.header (returns the PHU + a list of headers regardless of is_single)
AstroData.hdr (returns a list if not is_single, None if AstroData.nddata is falsey
This is a bit confusing, and initially AstroData.header got 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.header is getting un-deprecated for the time being, in favor of finding a better solution in the future to capture both behaviors.
Code of Conduct
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