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

Add stringification to (CameraGeom) enums

    Details

    • Templates:

      Description

      On DM-12635, I had a need to extract a string from an afw.cameraGeom.DetectorType enum value, because we'll be storing those values as strings in the Gen3 Registry database.  I accomplished that by calling str() on it and then doing some string manipulation to remove the module and enum type name, but this seems like generally useful functionality that could be added to cameraGeom or perhaps common code used for all of our wrapped enums.

      Pim Schellart [X] noted that using py::arithmetic in the wrappers may provide this automatically, though it may also bring in undesirable bitwise operators.

       

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jbosch Jim Bosch
                Watchers:
                Jim Bosch, Pim Schellart [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel