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

Add utility code for wrapping dict-like C++ objects

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Mappings in Python 3 are expected to have keys, values, and items that return set-like view objects. This is easy in Python if you use mixins from collections, but hard in C++. We should add some utility code to make it easier.

      afw.image.ApCorrMap would definitely make use of this. PropertySet and PropertyList ought to but are probably already too different from dict to make use of it now.

        Attachments

          Issue Links

            Activity

            Hide
            swinbank John Swinbank added a comment -

            Jim BoschKevin Long points out that this story should probably be in epic DM-9155 (not DM-7330, as it is presently). Do you agree? I'm going to proactively assume you do and go ahead and move it; please shout (& move it back) if you don't.

            Show
            swinbank John Swinbank added a comment - Jim Bosch — Kevin Long points out that this story should probably be in epic DM-9155 (not DM-7330 , as it is presently). Do you agree? I'm going to proactively assume you do and go ahead and move it; please shout (& move it back) if you don't.
            Hide
            jbosch Jim Bosch added a comment -

            Definitely agree. I think when you type "pybind11" in the JIRA epic box, DM-7330 is still the first option that pops up, and if you don't think about the cycle, "-followup" looks like it's what you want for cleanup tickets. I think I already fixed some other ones that had the same mistake.

            Show
            jbosch Jim Bosch added a comment - Definitely agree. I think when you type "pybind11" in the JIRA epic box, DM-7330 is still the first option that pops up, and if you don't think about the cycle, "-followup" looks like it's what you want for cleanup tickets. I think I already fixed some other ones that had the same mistake.
            Hide
            tjenness Tim Jenness added a comment -

            Regarding property list and property set, I already made those dict-like without touching the pybind11 interface in DM-15676.

            Show
            tjenness Tim Jenness added a comment - Regarding property list and property set, I already made those dict-like without touching the pybind11 interface in DM-15676 .

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jbosch Jim Bosch
              Watchers:
              Jim Bosch, John Swinbank, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Jenkins

                  No builds found.