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

Butler can't get bias for LATISS using expId

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: daf_persistence, obs_lsst
    • Labels:
      None
    • Templates:
    • Team:
      Architecture
    • Urgent?:
      Yes

      Description

      Doing

      import lsst.daf.persistence as dafPersist                                                                              
      butler = dafPersist.Butler('/home/mfl/auxTel_repo/')
      butler.get('bias', expId=2020012800123) 

      results in

      ~/lsst/obs_base/python/lsst/obs/base/mapping.py in lookup(self, properties, dataId)
          504             if len(lookups) != 1:
          505                 raise RuntimeError("No unique lookup for %s from %s: %d matches" %
      --> 506                                    (columns, dataId, len(lookups)))
          507             if columns == set(properties):
          508                 # Have everything we need
      RuntimeError: No unique lookup for {'detector', 'dayObs'} from DataId(initialdata={'expId': 2020012800123}, tag=set()): 6 matches
      

      but doing

      butler.get('bias', dayObs='2020-01-28', seqNum=123) 
      

      correctly finds the bias.
      As you'd expect, the registry shows a single bias only.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ktl Kian-Tat Lim
                Reporter:
                mfisherlevine Merlin Fisher-Levine
                Reviewers:
                Merlin Fisher-Levine
                Watchers:
                Kian-Tat Lim, Merlin Fisher-Levine
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel