Uploaded image for project: 'Request For Comments'
  1. Request For Comments
  2. RFC-177

Enforce Astropy-compliant strings for units in afw.table

    Details

    • Type: RFC
    • Status: Implemented
    • Resolution: Done
    • Component/s: DM
    • Labels:
      None

      Description

      With DM-5641, we'll soon be able to get astropy.table views into afw.table objects. That will be more useful if astropy can understand the unit strings we give it, and since we currently don't use those strings as anything more than textual information for humans, we might as well standardize on the terms they've already selected (see http://docs.astropy.org/en/stable/units/). This standardisation is covered by DM-5642.

      I propose that enforcement of compatible units will be turned on by default.

      This will have three related benefits:

      1. Minimises potential parsing problems by defining and enforcing a standard format for units.
      2. Will allow for easier interoperability with astropy (e.g. with quantities) in the future.
      3. Prevents misuse of unit field for storage of non-unit related information.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  pschella Pim Schellart [X] (Inactive)
                  Reporter:
                  pschella Pim Schellart [X] (Inactive)
                  Watchers:
                  Jim Bosch, John Parejko, Michael Wood-Vasey, Pim Schellart [X] (Inactive), Tim Jenness
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Planned End:

                    Summary Panel