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

dotted keys in the key of a policy dict don't unpack right

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Templates:
    • Story Points:
      2
    • Team:
      Data Access and Database

      Description

      initializing a butler like so, with exposures.raw.template in the policy

              butler = dp.Butler(outputs={'root': self.testDir,
                                          'mapper': MapperForTestWriting,
                                          'policy': {'exposures.raw.template': 'foo'}})
      

      should cause a repositoryCfg that looks something like:

      !RepositoryCfg_v1
      ...
      !RepositoryCfg_v1
      ...
      _policy: !!python/object:lsst.daf.persistence.policy.Policy
        data:
          exposures:
            raw:
              template: 'foo'
      

      but the key isn't getting unpacked, and instead it looks like:

      !RepositoryCfg_v1
      ...
      _policy: !!python/object:lsst.daf.persistence.policy.Policy
        data: {exposures.raw.template: foo}
      ...
      

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                npease Nate Pease
                Watchers:
                Nate Pease
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel