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: butler, obs_base
    • Labels:
      None
    • Templates:
    • 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

              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