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

OFC: xref does not work as expected

    XMLWordPrintable

    Details

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

      Description

      The OFC xref currently has 3 options: x00, x0, and 0. I have observed with my test at NCSA that at least x0 does not work as expected. (It worked a couple of weeks ago. So I believe a recent change to the code affected this).

      The working version of the test has a permanent link here (cells 54-110)

      https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/aos2comp.ipynb

      Here is a description of what should be expected:

      when xref=x0, it means we are referencing the current positions of the DOFs for motion penalty. So if I add the same aberration twice, the visitDOF resulted from the first addAberration command should be equal to the visitDOF resulted from the 2nd addAberration command.

      So, basically, I do

      await aos.cmd_addAberration.set_start(wf = zernikes, config=config_yaml)

      await aos.cmd_issueCorrection.set_start()

      then check the event evt_degreeOfFreedom.visitDOF

      then repeat the above, the two visitDOFs should be equal. But right now they are not (in the notebook linked above, they are. But not if I re-execute the notebook with the latest version of MTAOS)

      when we set xref=x00, they will not be equal. If we compare individual DOFs, I expect the 2nd to be generally smaller than the first.

      In case that you want to check xref=0 option as well:

      my understanding is that if we have all zeros in dof_state0_filename, which is the default, the behavior should be the same as x00.

       

      Note: This ticket is also used to fix the bug of butler change in the up-stream.

        Attachments

          Issue Links

            Activity

            bxin Bo Xin [X] (Inactive) created issue -
            bxin Bo Xin [X] (Inactive) made changes -
            Field Original Value New Value
            Link This issue clones DM-31078 [ DM-31078 ]
            bxin Bo Xin [X] (Inactive) made changes -
            Description When OFC is finished, the output would be published as {{MTAOS.logevent_degreeOfFreedom}}. These are arrays of 50x1. Then the next step is to convert these into corrections that can be sent to the components. For the mirrors, the {{MTAOS.logevent_XXCorrection}} should be in actuator forces. While for the hexapods, they should be dx,dy,dz,rx,ry in both cases. That is why I expect them to match.

            These corrections should correspond to {{aggregatedDOF}} , not {{visitDOF}}. My EFD analysis seems to say it is {{visitDOF. (See below, cells 1-12)}}

            https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/bug_addAberr_twice.ipynb
            The OFC xref current has 3 options: x00, x0, and 0. I have observed with my test at NCSA that at least x0 does not work as expected. (It worked a couple of weeks ago. So I believe a recent change to the code affected this).

            The working version of the test has a permanent link here (cells 54-110)

            [https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/aos2comp.ipynb]

            Here is a description of what should be expected:

            when xref=x0, it means we are referencing the current positions of the DOFs for motion penalty. So if I add the same aberration twice, the visitDOF from the first addAberration command should be equal to the visitDOF from the 2nd addAberration command.

            So, basically, I do

            await aos.cmd_addAberration.set_start(wf = zernikes, config=config_yaml)

            await aos.cmd_issueCorrection.set_start()

            then check the event evt_degreeOfFreedom.visitDOF

            then repeat the above, the two visitDOFs should be equal. But right now they are not (in the notebook linked above, they are. But not if I re-execute the notebook with the latest version of MTAOS)

            when we set xref=x00, they will not be equal. If we compare individual DOFs, I expect the 2nd to be generally smaller than the first.

            In case that you want to check xref=0 option as well:

            my understanding is that if we have all zeros in dof_state0_filename, which is the default, the behavior should be the same as x00.
            bxin Bo Xin [X] (Inactive) made changes -
            Link This issue clones DM-31078 [ DM-31078 ]
            ttsai Te-Wei Tsai made changes -
            End date 16/Jul/21 04/Aug/21
            Sprint TSSW Sprint - Aug 02 - Aug 16 [ 1111 ]
            Start date 13/Jul/21 04/Aug/21
            Description The OFC xref current has 3 options: x00, x0, and 0. I have observed with my test at NCSA that at least x0 does not work as expected. (It worked a couple of weeks ago. So I believe a recent change to the code affected this).

            The working version of the test has a permanent link here (cells 54-110)

            [https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/aos2comp.ipynb]

            Here is a description of what should be expected:

            when xref=x0, it means we are referencing the current positions of the DOFs for motion penalty. So if I add the same aberration twice, the visitDOF from the first addAberration command should be equal to the visitDOF from the 2nd addAberration command.

            So, basically, I do

            await aos.cmd_addAberration.set_start(wf = zernikes, config=config_yaml)

            await aos.cmd_issueCorrection.set_start()

            then check the event evt_degreeOfFreedom.visitDOF

            then repeat the above, the two visitDOFs should be equal. But right now they are not (in the notebook linked above, they are. But not if I re-execute the notebook with the latest version of MTAOS)

            when we set xref=x00, they will not be equal. If we compare individual DOFs, I expect the 2nd to be generally smaller than the first.

            In case that you want to check xref=0 option as well:

            my understanding is that if we have all zeros in dof_state0_filename, which is the default, the behavior should be the same as x00.
            When OFC is finished, the output would be published as {{MTAOS.logevent_degreeOfFreedom}}. These are arrays of 50x1. Then the next step is to convert these into corrections that can be sent to the components. For the mirrors, the {{MTAOS.logevent_XXCorrection}} should be in actuator forces. While for the hexapods, they should be dx,dy,dz,rx,ry in both cases. That is why I expect them to match.

            These corrections should correspond to {{aggregatedDOF}} , not {{visitDOF}}. My EFD analysis seems to say it is {{visitDOF. (See below, cells 1-12)}}

            https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/bug_addAberr_twice.ipynb
            bxin Bo Xin [X] (Inactive) made changes -
            Description When OFC is finished, the output would be published as {{MTAOS.logevent_degreeOfFreedom}}. These are arrays of 50x1. Then the next step is to convert these into corrections that can be sent to the components. For the mirrors, the {{MTAOS.logevent_XXCorrection}} should be in actuator forces. While for the hexapods, they should be dx,dy,dz,rx,ry in both cases. That is why I expect them to match.

            These corrections should correspond to {{aggregatedDOF}} , not {{visitDOF}}. My EFD analysis seems to say it is {{visitDOF. (See below, cells 1-12)}}

            https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/bug_addAberr_twice.ipynb
            The OFC xref currently has 3 options: x00, x0, and 0. I have observed with my test at NCSA that at least x0 does not work as expected. (It worked a couple of weeks ago. So I believe a recent change to the code affected this).

            The working version of the test has a permanent link here (cells 54-110)

            [https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/aos2comp.ipynb]

            Here is a description of what should be expected:

            when xref=x0, it means we are referencing the current positions of the DOFs for motion penalty. So if I add the same aberration twice, the visitDOF from the first addAberration command should be equal to the visitDOF from the 2nd addAberration command.

            So, basically, I do

            await aos.cmd_addAberration.set_start(wf = zernikes, config=config_yaml)

            await aos.cmd_issueCorrection.set_start()

            then check the event evt_degreeOfFreedom.visitDOF

            then repeat the above, the two visitDOFs should be equal. But right now they are not (in the notebook linked above, they are. But not if I re-execute the notebook with the latest version of MTAOS)

            when we set xref=x00, they will not be equal. If we compare individual DOFs, I expect the 2nd to be generally smaller than the first.

            In case that you want to check xref=0 option as well:

            my understanding is that if we have all zeros in dof_state0_filename, which is the default, the behavior should be the same as x00.
            bxin Bo Xin [X] (Inactive) made changes -
            Description The OFC xref currently has 3 options: x00, x0, and 0. I have observed with my test at NCSA that at least x0 does not work as expected. (It worked a couple of weeks ago. So I believe a recent change to the code affected this).

            The working version of the test has a permanent link here (cells 54-110)

            [https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/aos2comp.ipynb]

            Here is a description of what should be expected:

            when xref=x0, it means we are referencing the current positions of the DOFs for motion penalty. So if I add the same aberration twice, the visitDOF from the first addAberration command should be equal to the visitDOF from the 2nd addAberration command.

            So, basically, I do

            await aos.cmd_addAberration.set_start(wf = zernikes, config=config_yaml)

            await aos.cmd_issueCorrection.set_start()

            then check the event evt_degreeOfFreedom.visitDOF

            then repeat the above, the two visitDOFs should be equal. But right now they are not (in the notebook linked above, they are. But not if I re-execute the notebook with the latest version of MTAOS)

            when we set xref=x00, they will not be equal. If we compare individual DOFs, I expect the 2nd to be generally smaller than the first.

            In case that you want to check xref=0 option as well:

            my understanding is that if we have all zeros in dof_state0_filename, which is the default, the behavior should be the same as x00.
            The OFC xref currently has 3 options: x00, x0, and 0. I have observed with my test at NCSA that at least x0 does not work as expected. (It worked a couple of weeks ago. So I believe a recent change to the code affected this).

            The working version of the test has a permanent link here (cells 54-110)

            [https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/aos2comp.ipynb]

            Here is a description of what should be expected:

            when xref=x0, it means we are referencing the current positions of the DOFs for motion penalty. So if I add the same aberration twice, the visitDOF resulted from the first addAberration command should be equal to the visitDOF resulted from the 2nd addAberration command.

            So, basically, I do

            await aos.cmd_addAberration.set_start(wf = zernikes, config=config_yaml)

            await aos.cmd_issueCorrection.set_start()

            then check the event evt_degreeOfFreedom.visitDOF

            then repeat the above, the two visitDOFs should be equal. But right now they are not (in the notebook linked above, they are. But not if I re-execute the notebook with the latest version of MTAOS)

            when we set xref=x00, they will not be equal. If we compare individual DOFs, I expect the 2nd to be generally smaller than the first.

            In case that you want to check xref=0 option as well:

            my understanding is that if we have all zeros in dof_state0_filename, which is the default, the behavior should be the same as x00.
            ttsai Te-Wei Tsai made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            jbkalmbach Bryce Kalmbach made changes -
            Link This issue is triggering DM-31343 [ DM-31343 ]
            ttsai Te-Wei Tsai made changes -
            Story Points 0 1
            ttsai Te-Wei Tsai made changes -
            Description The OFC xref currently has 3 options: x00, x0, and 0. I have observed with my test at NCSA that at least x0 does not work as expected. (It worked a couple of weeks ago. So I believe a recent change to the code affected this).

            The working version of the test has a permanent link here (cells 54-110)

            [https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/aos2comp.ipynb]

            Here is a description of what should be expected:

            when xref=x0, it means we are referencing the current positions of the DOFs for motion penalty. So if I add the same aberration twice, the visitDOF resulted from the first addAberration command should be equal to the visitDOF resulted from the 2nd addAberration command.

            So, basically, I do

            await aos.cmd_addAberration.set_start(wf = zernikes, config=config_yaml)

            await aos.cmd_issueCorrection.set_start()

            then check the event evt_degreeOfFreedom.visitDOF

            then repeat the above, the two visitDOFs should be equal. But right now they are not (in the notebook linked above, they are. But not if I re-execute the notebook with the latest version of MTAOS)

            when we set xref=x00, they will not be equal. If we compare individual DOFs, I expect the 2nd to be generally smaller than the first.

            In case that you want to check xref=0 option as well:

            my understanding is that if we have all zeros in dof_state0_filename, which is the default, the behavior should be the same as x00.
            The OFC xref currently has 3 options: x00, x0, and 0. I have observed with my test at NCSA that at least x0 does not work as expected. (It worked a couple of weeks ago. So I believe a recent change to the code affected this).

            The working version of the test has a permanent link here (cells 54-110)

            [https://github.com/lsst-ts/ts_notebooks/blob/6aa43c715eefcb1731500f8e7b77d3fec46a092b/bxin/aos2comp/aos2comp.ipynb]

            Here is a description of what should be expected:

            when xref=x0, it means we are referencing the current positions of the DOFs for motion penalty. So if I add the same aberration twice, the visitDOF resulted from the first addAberration command should be equal to the visitDOF resulted from the 2nd addAberration command.

            So, basically, I do

            await aos.cmd_addAberration.set_start(wf = zernikes, config=config_yaml)

            await aos.cmd_issueCorrection.set_start()

            then check the event evt_degreeOfFreedom.visitDOF

            then repeat the above, the two visitDOFs should be equal. But right now they are not (in the notebook linked above, they are. But not if I re-execute the notebook with the latest version of MTAOS)

            when we set xref=x00, they will not be equal. If we compare individual DOFs, I expect the 2nd to be generally smaller than the first.

            In case that you want to check xref=0 option as well:

            my understanding is that if we have all zeros in dof_state0_filename, which is the default, the behavior should be the same as x00.

             

            {color:#de350b}Note: This ticket is also used to fix the bug of butler change in the up-stream.{color}
            ttsai Te-Wei Tsai made changes -
            Status In Progress [ 3 ] In Review [ 10004 ]
            tribeiro Tiago Ribeiro made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            ttsai Te-Wei Tsai made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]
            aclements Andy Clements made changes -
            Epic Link DM-27623 [ 441888 ] DM-24627 [ 433990 ]

              People

              Assignee:
              ttsai Te-Wei Tsai
              Reporter:
              bxin Bo Xin [X] (Inactive)
              Reviewers:
              Bo Xin [X] (Inactive), Tiago Ribeiro
              Watchers:
              Bo Xin [X] (Inactive), Te-Wei Tsai, Tiago Ribeiro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Start date:
                End date:

                  Jenkins

                  No builds found.