Skip to content

[MISC]: Header access confusing #92

@teald

Description

@teald

Contact Details

No response

What happened?

AstroData objects have two ways of being accessed:

  1. Astrodata.header (returns the PHU + a list of headers regardless of is_single)
  2. 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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

DRAGONSRelated to DRAGONS developmenthelp wantedExtra attention is neededmaintenanceFor maintenance tasksmiscMiscellaneous (not covered by other tags)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions