Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-2444

Fix MCS testLoop command without lamps/spots

    XMLWordPrintable

    Details

      Description

      The testLoop command fails in an ugly way and the image file is not written when lamps are off and no spots are found. This used to fail more gracefully.

      The PFSC file should be written and the command should stop with the first " f " reply and error.

      2025-01-23 03:56:06.520Z cmds             20 CommandLink.py:122 > 2 30 i state="measuring cached image: (5778, 8960)"
      2025-01-23 03:56:06.661Z cmds             20 CommandLink.py:122 > 2 30 f text="No spots detected; check the illuminator and light path"
      2025-01-23 03:56:06.663Z cmds             20 CommandLink.py:122 > 2 30 w text="this command has already been finished!!!! (client.v5888 30): expose object expTime=4.80 frameId=11959700 doCentroid doFibreID"
      2025-01-23 03:56:06.663Z cmds             20 CommandLink.py:122 > 2 30 f text="command failed: ValueError('zero-size array to reduction operation maximum which has no identity') in _amax() at /software/condaRoot/envs/rubin8-ics/lib/python3.11/site-packages/numpy/core/_methods.py:41"
      

        Attachments

          Activity

            People

            • Assignee:
              cloomis cloomis
              Reporter:
              cloomis cloomis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: