Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-19556

Use TemplateMeta with GenericMap

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None
    • Templates:
    • Story Points:
      4
    • Sprint:
      AP F19-1
    • Team:
      Alert Production

      Description

      In C++, lsst.afw.typehandling.GenericMap is a class template with a single template parameter, the key type. Since the key is likely to only be "simple" types like integer or strings, GenericMap is well-suited for use with lsst.utils.TemplateMeta.

      Priority: minor, as currently there is only a string version of GenericMap in Python and no demand for alternatives.

      Note that this will make the Python API slightly more confusing, since the new Python GenericMap would have the restriction that all keys must be of the same type, but not of any particular type. (Though in practice, I can't imagine a use case for heterogeneous keys.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krzys Krzysztof Findeisen
                Reporter:
                krzys Krzysztof Findeisen
                Reviewers:
                John Parejko
                Watchers:
                John Parejko, Krzysztof Findeisen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel