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) |
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
Use case: transforms support units