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

calling "cobraIdForModulePlusCobra" method fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Normal
    • Resolution: Unresolved
    • Component/s: pfs_utils
    • Labels:
      None

      Description

      When I updated grandfibermap for INSRTM-1195, "cobraIdForModulePlusCobra" couldn't be called.

      For example this is a report from Hassan:

      >>> from pfs.utils.fiberids import FiberIds
      >>> fdb = FiberIds()
      >>> fdb.cobraIdForModulePlusCobra(2, 2)
      /tigress/hassans/software/pfs_utils/python/pfs/utils/fiberids.py:170: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
        w = (self.boardId == boardName) & (self.cobraInModuleId == cobraInModule)
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/tigress/hassans/software/pfs_utils/python/pfs/utils/fiberids.py", line 171, in cobraIdForModulePlusCobra
          return self.cobraId[w][0]
      IndexError: index 0 is out of bounds for axis 0 with size 0
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yuki.moritani yuki.moritani
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: