-
Type: Bug
-
Status: Open (View Workflow)
-
Priority: Normal
-
Resolution: Unresolved
-
Component/s: pfs_utils
-
Labels:None
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
- relates to
-
INSTRM-1258 Update the fiberids.py accessor for the grandfibermap file
- Done