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

Be careful when handling empty sep results?

    XMLWordPrintable

    Details

    • Sprint:
      PostRun21Mar

      Description

      You sometime see the following from the measurement code, I think only when there are no results. Not always, which is confusing, but there are threads and processes involved.

      9223372036854775808 is 0x8000000000000000 or 2^63, so -9223372036854775808 is some form of -1 or -0 something?

      Traceback (most recent call last):
        File "/software/condaRoot/envs/rubin8-ics/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
          self.run()
        File "/software/condaRoot/envs/rubin8-ics/lib/python3.11/multiprocessing/process.py", line 108, in run
          self._target(*self._args, **self._kwargs)
        File "/software/devel/cpl/ics_agccActor/python/agccActor/photometry.py", line 33, in worker
          result = measure(data,agcid,cParms,iParms,cMethod)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/software/devel/cpl/ics_agccActor/python/agccActor/photometry.py", line 18, in measure
          result = ct.getCentroidsSep(data,iParms,cParms,spotDtype,agcid)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/software/devel/cpl/ics_agccActor/python/agccActor/centroidTools.py", line 201, in getCentroidsSep
          diag = np.array([data[xPos,yPos] - data[xPos-5,yPos],data[xPos,yPos] - data[xPos+5,yPos]]).min(axis=0)
                           ~~~~^^^^^^^^^^^
      IndexError: index -9223372036854775808 is out of bounds for axis 0 with size 1033
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: