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

butler.subset problems with obs_lsstSim

    Details

    • Templates:
    • Team:
      Data Access and Database

      Description

      Using a obs_lsstSim data repo, Butler.subset complains about a missing raw_skyTile table. Here is my test code:

      bash-4.1$ cat butler_test.py
      import lsst.daf.persistence as dp
       
      data_repo = '/nfs/farm/g/lsst/u1/users/tonyj/Twinkles/run1/985visits'
       
      butler = dp.Butler(data_repo)
       
      print butler.mapper
       
      base_dataId = dict(raft='2,2', sensor='1,1', tract=0)
      dataId = dict(filter='u', visit=1000185)
      dataId.update(base_dataId)
      src = butler.get('src', dataId=dataId)
      print src
       
      uband_dataId = dict(filter='u')
      uband_dataId.update(base_dataId)
      datarefs = butler.subset('src', dataId=uband_dataId)
      print datarefs
      

      and the output:

      bash-4.1$ python butler_test.py
      CameraMapper: Loading registry registry from /nfs/farm/g/lsst/u1/users/tonyj/Twinkles/run1/985visits/_parent/registry.sqlite3
      <lsst.obs.lsstSim.lsstSimMapper.LsstSimMapper object at 0x7ffe21e7add0>
      <lsst.afw.table.tableLib.SourceCatalog; proxy of <Swig Object of type 'lsst::afw::table::SortedCatalogT< lsst::afw::table::SourceRecord > *' at 0x7ffe2143bba0> >
      Traceback (most recent call last):
        File "butler_test.py", line 17, in <module>
          datarefs = butler.subset('src', dataId=uband_dataId)
        File "/nfs/farm/g/desc/u1/LSST_Stack_2016-02-23/lsstsw/stack/Linux64/daf_persistence/2016_01.0-2-g3878625+3/python/lsst/daf/persistence/butler.py", line 377, in subset
          return ButlerSubset(self, datasetType, level, dataId)
        File "/nfs/farm/g/desc/u1/LSST_Stack_2016-02-23/lsstsw/stack/Linux64/daf_persistence/2016_01.0-2-g3878625+3/python/lsst/daf/persistence/butlerSubset.py", line 90, in __init__
          level, fmt, self.dataId):
        File "/nfs/farm/g/desc/u1/LSST_Stack_2016-02-23/lsstsw/stack/Linux64/daf_persistence/2016_01.0-2-g3878625+3/python/lsst/daf/persistence/butler.py", line 210, in queryMetadata
          tuples = self.mapper.queryMetadata(datasetType, key, format, dataId)
        File "/nfs/farm/g/desc/u1/LSST_Stack_2016-02-23/lsstsw/stack/Linux64/daf_persistence/2016_01.0-2-g3878625+3/python/lsst/daf/persistence/mapper.py", line 101, in queryMetadata
          return func(key, format, self.validate(dataId))
        File "/nfs/farm/g/desc/u1/LSST_Stack_2016-02-23/lsstsw/stack/Linux64/daf_butlerUtils/2016_01.0+16/python/lsst/daf/butlerUtils/cameraMapper.py", line 285, in queryClosure
          return mapping.lookup(format, dataId)
        File "/nfs/farm/g/desc/u1/LSST_Stack_2016-02-23/lsstsw/stack/Linux64/daf_butlerUtils/2016_01.0+16/python/lsst/daf/butlerUtils/mapping.py", line 177, in lookup
          return self.registry.lookup(properties, self.tables, lookupDataId)
        File "/nfs/farm/g/desc/u1/LSST_Stack_2016-02-23/lsstsw/stack/Linux64/daf_butlerUtils/2016_01.0+16/python/lsst/daf/butlerUtils/registries.py", line 306, in lookup
          c = self.conn.execute(cmd, valueList)
      sqlite3.OperationalError: no such table: raw_skyTile
      bash-4.1$ 
      

      I've attached the output of eups list | grep setup so that you can see my runtime configuration.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ktl Kian-Tat Lim
                Reporter:
                jchiang James Chiang
                Watchers:
                James Chiang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel