Skip to content

Native API #644

Description

@nden

This issue concerns the GWCS Native API and is related to #561. We are considering streamlining the API and

Two use cases are listed below for consideration. The proposed behavior is in bold and is very close to the current behavior but makes some assumptions. The strict approach is tempting in terms of software engineering and keeping a unambiguous interface but may not meet expectations. Any comments from power users?

@Cadair @astrofrog @chris-simpson @jehturner @karllark @drlaw1558

Use case: transforms do not support units

type of inputs strict approach accommodating approach astropy.wcs
numerical Return numbers Return numbers Return numbers
quantities Raise an error Convert inputs to numbers using units of the input system; return numbers (current behavior); OR return quantities using the units of the output system; print a warning Return numbers
HLO. Raise an error Convert inputs to numbers using units of the input system; return numbers (current behavior); OR return quantities using the units of the output system; print a warning Raise an error

Use case: transforms support units

type of inputs strict approach accommodating approach
numerical Raise an error Return quantities assuming units in the input frame; print a warning (current behavior)
quantities Return quantities Return quantities (current behavior)
HLO. Raise an error Return quantities (current behavior)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions