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

Update ts_phosim to work with latest version of ts_ofc

    XMLWordPrintable

    Details

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

      Description

      ts_phosim needs to be updated to work with the latest version of ts_ofc.

        Attachments

        1. fwhmIters.png
          fwhmIters.png
          19 kB
        2. fwhmIters2.png
          fwhmIters2.png
          26 kB
        3. fwhmIters3.png
          fwhmIters3.png
          34 kB
        4. fwhmItersLsstFam.png
          fwhmItersLsstFam.png
          32 kB

          Issue Links

            Activity

            Hide
            ttsai Te-Wei Tsai added a comment -

            I think that is just because I forgot to remove the duplicated functions. We could remove the duplication after we tested the simulation without the problem.

            Show
            ttsai Te-Wei Tsai added a comment - I think that is just because I forgot to remove the duplicated functions. We could remove the duplication after we tested the simulation without the problem.
            Hide
            ttsai Te-Wei Tsai added a comment -

            I just tested the latest `master` branch of ts_wep, phosim_utils, and ts_ofc v1.3.7 without the problems:

            [root@05f728cb542d ts_phosim]# python bin.src/opdCloseLoop.py
            Calculated PSSN is [0.59475346 0.589638   0.59052874 0.59292836 0.58497574 0.58628199
             0.59527559 0.58779044 0.58661072].
            GQ effective FWHM is 0.5433.
            Calculated PSSN is [0.96592765 0.96628028 0.96787884 0.966245   0.96562767 0.96761831
             0.96616062 0.96611983 0.96731786].
            GQ effective FWHM is 0.1212.
            

            Let me check the ts_ofc v2.0.0 and ticket branch of ts_phosim now.

            Show
            ttsai Te-Wei Tsai added a comment - I just tested the latest `master` branch of ts_wep , phosim_utils , and ts_ofc v1.3.7 without the problems: [root@05f728cb542d ts_phosim]# python bin.src/opdCloseLoop.py Calculated PSSN is [0.59475346 0.589638 0.59052874 0.59292836 0.58497574 0.58628199 0.59527559 0.58779044 0.58661072]. GQ effective FWHM is 0.5433. Calculated PSSN is [0.96592765 0.96628028 0.96787884 0.966245 0.96562767 0.96761831 0.96616062 0.96611983 0.96731786]. GQ effective FWHM is 0.1212. Let me check the ts_ofc v2.0.0 and ticket branch of ts_phosim now.
            Hide
            ttsai Te-Wei Tsai added a comment - - edited

            I have this error:

            [root@05f728cb542d ts_phosim]# python bin.src/opdCloseLoop.py
            Traceback (most recent call last):
              File "bin.src/opdCloseLoop.py", line 42, in <module>
                closeLoopTask.runOpd(
              File "/home/saluser/ts_phosim/python/lsst/ts/phosim/CloseLoopTask.py", line 386, in runOpd
                self.configOfcCalc(instName, filterType, rotCamInDeg)
            TypeError: configOfcCalc() takes 2 positional arguments but 4 were given
            

            and this:

            [root@05f728cb542d ts_phosim]# python bin.src/imgCloseLoop.py --eimage
            /home/saluser/ts_wep/python/lsst/ts/wep/bsc/WcsSol.py:45: FutureWarning: Gen2 Butler has been deprecated (LsstCamMapper). It will be removed sometime after v23.0 but no earlier than the end of 2021.
              self._camera = obs_lsst.lsstCamMapper.LsstCamMapper().camera
            CameraMapper INFO: Loading Posix exposure registry from .
            Use the default OPD field positions to be star positions.
            The star magnitude is chosen to be 15.
            CameraMapper INFO: Loading Posix exposure registry from .
            Traceback (most recent call last):
              File "bin.src/imgCloseLoop.py", line 43, in <module>
                closeLoopTask.runImg(
              File "/home/saluser/ts_phosim/python/lsst/ts/phosim/CloseLoopTask.py", line 811, in runImg
                self.configOfcCalc(instName, filterType, rotCamInDeg)
            TypeError: configOfcCalc() takes 2 positional arguments but 4 were given
            

            Tiago Ribeiro, did you update the files in ts_phosim/bin.src?

            Show
            ttsai Te-Wei Tsai added a comment - - edited I have this error: [root@05f728cb542d ts_phosim]# python bin.src/opdCloseLoop.py Traceback (most recent call last): File "bin.src/opdCloseLoop.py", line 42, in <module> closeLoopTask.runOpd( File "/home/saluser/ts_phosim/python/lsst/ts/phosim/CloseLoopTask.py", line 386, in runOpd self.configOfcCalc(instName, filterType, rotCamInDeg) TypeError: configOfcCalc() takes 2 positional arguments but 4 were given and this: [root@05f728cb542d ts_phosim]# python bin.src/imgCloseLoop.py --eimage /home/saluser/ts_wep/python/lsst/ts/wep/bsc/WcsSol.py:45: FutureWarning: Gen2 Butler has been deprecated (LsstCamMapper). It will be removed sometime after v23.0 but no earlier than the end of 2021. self._camera = obs_lsst.lsstCamMapper.LsstCamMapper().camera CameraMapper INFO: Loading Posix exposure registry from . Use the default OPD field positions to be star positions. The star magnitude is chosen to be 15. CameraMapper INFO: Loading Posix exposure registry from . Traceback (most recent call last): File "bin.src/imgCloseLoop.py", line 43, in <module> closeLoopTask.runImg( File "/home/saluser/ts_phosim/python/lsst/ts/phosim/CloseLoopTask.py", line 811, in runImg self.configOfcCalc(instName, filterType, rotCamInDeg) TypeError: configOfcCalc() takes 2 positional arguments but 4 were given Tiago Ribeiro , did you update the files in ts_phosim/bin.src ?
            Hide
            ttsai Te-Wei Tsai added a comment -

            This update looks good to me. I have some comments that will send in email. Please consider them before the merge. The main part is here:

            [Summary]

            1. Please help to update the script in bin.src/ to make sure the simulation can run (the minimum is to check the OPD simulation can work and converge). Maybe you could let Chris to help to do the simulation and check the converge.
            1. I have some concern to pass the filter type to python/lsst/ts/phosim/CloseLoopTask.py from the scripts in bin.src/. Please help to check this.
            Show
            ttsai Te-Wei Tsai added a comment - This update looks good to me. I have some comments that will send in email. Please consider them before the merge. The main part is here: [Summary] Please help to update the script in bin.src/ to make sure the simulation can run (the minimum is to check the OPD simulation can work and converge). Maybe you could let Chris to help to do the simulation and check the converge. I have some concern to pass the filter type to python/lsst/ts/phosim/CloseLoopTask.py from the scripts in bin.src/ . Please help to check this.
            Hide
            tribeiro Tiago Ribeiro added a comment -

            Some additional information requested by TeWei:

            Result of running opdCloseLoop.py for comcam

            result of running opdCloseLoop.py for lsstfam

            result of running imgCLoseLoop for comcam

             

             

            result of running imgCloseLoop for lsstfam

             

             

            All the results are available at NCSA in /project/tribeiro/

             

            Show
            tribeiro Tiago Ribeiro added a comment - Some additional information requested by TeWei: Result of running opdCloseLoop.py for comcam result of running opdCloseLoop.py for lsstfam result of running imgCLoseLoop for comcam     result of running imgCloseLoop for lsstfam     All the results are available at NCSA in /project/tribeiro/  

              People

              Assignee:
              tribeiro Tiago Ribeiro
              Reporter:
              tribeiro Tiago Ribeiro
              Reviewers:
              Krzysztof Suberlak, Te-Wei Tsai
              Watchers:
              Andy Clements, Krzysztof Suberlak, Te-Wei Tsai, Tiago Ribeiro, Wouter van Reeven
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.