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

Wrong error is thrown when butler finds two matches

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: daf_persistence, obs_base
    • Labels:
      None
    • Team:
      Data Access and Database

      Description

      Different but related to DM-10443, if the lookup matches two or more files the code correctly throws an exception at mapping.py:266, although the type NoResults is incorrect. This is silently caught at daf_persistence:butler.py 866.

      > /home/mfl/lsst/obs_base/python/lsst/obs/base/mapping.py(267)need()
          266             raise NoResults("No unique lookup for %s from %s: %d matches" %
      --> 267                             (newProps, newId, len(lookups)),
          268                             self.datasetType, dataId)
      

      The butler then (correctly) ignores the error, and ends up reporting that the get() failed.

        Attachments

          Issue Links

            Activity

            Hide
            swinbank John Swinbank added a comment -

            Setting team to DAX & paging Fritz Mueller.

            Show
            swinbank John Swinbank added a comment - Setting team to DAX & paging Fritz Mueller .

              People

              • Assignee:
                Unassigned
                Reporter:
                mfisherlevine Merlin Fisher-Levine
                Watchers:
                John Swinbank, Merlin Fisher-Levine, Robert Lupton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel