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

confusing error message when enabling unregistered items in RegistryField

    Details

      Description

      pex_config seems to split out this confusing error message when trying to enable (i.e. append to .names) a registry item that doesn't exist:

        File "/home/lam3/tigress/LSST/obs_subaru/config/processCcd.py", line 51, in <module>
          root.measurement.algorithms.names |= ["jacobian", "focalplane"]
        File "/tigress/HSC/LSST/lsstsw/anaconda/lib/python2.7/_abcoll.py", line 330, in __ior__
          self.add(value)
        File "/tigress/HSC/LSST/lsstsw/stack/Linux64/pex_config/9.0+26/python/lsst/pex/config/configChoiceField.py", line 72, in add
          r = self.__getitem__(value, at=at)
      AttributeError: 'SelectionSet' object has no attribute '__getitem__'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbosch Jim Bosch
                Reporter:
                jbosch Jim Bosch
                Reviewers:
                Russell Owen
                Watchers:
                Jim Bosch, Lauren MacArthur, Russell Owen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel