[PIPE2D-967] showDetectorMap() fails on call to pfsConfig.selectFiber() Created: 22/Jan/22 Updated: 25/Jan/22 Resolved: 25/Jan/22 |
|
| Status: | Done |
| Project: | DRP 2-D Pipeline |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Normal |
| Reporter: | hassan | Assignee: | hassan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Story Points: | 1 |
| Reviewers: | price |
| Description |
|
Calling drp.stella.utils.display.showDetectorMap() fails as follows:
---> 10 showDetectorMap(display=disp, detMap=detMap, pfsConfig=pfsConfig)
/tigress/hassans/software/drp_stella/python/pfs/drp/stella/utils/display.py in showDetectorMap(display, pfsConfig, detMap, width, zoom, xc, fiberIds, lines)
241 ls = '-'
242 if fid in pfsConfig.fiberId:
--> 243 ind = pfsConfig.selectFiber(fid)[0]
244 imagingFiber = pfsConfig.targetType[ind] == TargetType.SUNSS_IMAGING
245 if pfsConfig.fiberStatus[ind] == FiberStatus.BROKENFIBER:
TypeError: 'int' object is not subscriptable
|
| Comments |
| Comment by hassan [ 22/Jan/22 ] |
|
Trivial fix implemented. |
| Comment by hassan [ 25/Jan/22 ] |
|
Merged to master. |