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

Update ts_wep import of DetectorType

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_aos
    • Labels:

      Description

      DM-28658 requires a different way to import DetectorType from afw.  Currently,  with stack 2021_13, I get for ts_wep: 

       
      setup ts_wep -k -r /project/scichris/aos/ts_wep/
       

      scons -c
      scons: Reading SConscript files ...
       EUPS integration: enabled
       Setting up environment to build package 'ts_wep'.
       find . ( -name .svn -prune -o -name .git -prune -o -name * ) ( -name ~ -type f -o -name core -type f -o -name core.[1-9] -type f -o -name *.so -type f -o -name *.os -type f -o -name *.o -type f -o -name *.pyc -type f -o -name *.pkgc -type f ) -exec rm -f {} \; ; rm -rf .sconf_temp .sconsign.dblite .sconsign.tmp config.log ; find . ( -name .svn -prune -o -name .git -prune -o -name * ) ( -name .cache -type d -prune -o -name _pycache_ -type d -prune -o -name .pytest_cache -type d -prune ) -exec rm -rf {} \;
       ModuleNotFoundError: No module named 'lsst.afw.cameraGeom.detector':
       File "/project/scichris/aos/ts_wep/SConstruct", line 3:
       scripts.BasicSConstruct("ts_wep")
       File "/software/lsstsw/stack_20210211/stack/miniconda3-py38_4.9.2-0.4.1/Linux64/sconsUtils/21.0.0-7-gd4ecef8/python/lsst/sconsUtils/scripts.py", line 51:
       cls.initialize(packageName, versionString, eupsProduct, eupsProductPath, cleanExt,
       File "/software/lsstsw/stack_20210211/stack/miniconda3-py38_4.9.2-0.4.1/Linux64/sconsUtils/21.0.0-7-gd4ecef8/python/lsst/sconsUtils/scripts.py", line 153:
       SConscript(script)
       File "/software/lsstsw/stack_20210211/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 654:
       return method(*args, **kw)
       File "/software/lsstsw/stack_20210211/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 591:
       return _SConscript(self.fs, *files, **subst_kw)
       File "/software/lsstsw/stack_20210211/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe/lib/python3.8/site-packages/SCons/Script/SConscript.py", line 280:
       exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
       File "/project/scichris/aos/ts_wep/python/lsst/ts/wep/cwfs/SConscript", line 2:
       from lsst.ts.wep.Utility import getModulePath
       File "/project/scichris/aos/ts_wep/python/lsst/ts/wep/_init_.py", line 5:
       from .SourceSelector import SourceSelector
       File "/project/scichris/aos/ts_wep/python/lsst/ts/wep/SourceSelector.py", line 25:
       from lsst.ts.wep.bsc.CamFactory import CamFactory
       File "/project/scichris/aos/ts_wep/python/lsst/ts/wep/bsc/CamFactory.py", line 23:
       from lsst.ts.wep.bsc.LsstCam import LsstCam
       File "/project/scichris/aos/ts_wep/python/lsst/ts/wep/bsc/LsstCam.py", line 23:
       from lsst.afw.cameraGeom.detector.detector import DetectorType
      

       

      ( Note: This error was not present in w_2021_12 , it is new to w_2021_13 ) .

      Completion criteria:

      Pass all scons tests. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ksuberlak Krzysztof Suberlak
              Reporter:
              ksuberlak Krzysztof Suberlak
              Reviewers:
              Te-Wei Tsai
              Watchers:
              Krzysztof Suberlak, Te-Wei Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Start date:

                  Jenkins

                  No builds found.