[INSTRM-1197] Add more cobra information to grandfibermap Created: 01/Mar/21 Updated: 21/Apr/21 Resolved: 21/Apr/21 |
|
| Status: | Done |
| Project: | Instrument control development |
| Component/s: | pfs_utils |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Normal |
| Reporter: | yuki.moritani | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The original comment in
|
| Comments |
| Comment by cloomis [ 09/Mar/21 ] |
|
From the PFI/FPS point of view, the following have been tested and are useful. This corrects the module calculation above, and generates a 1..84 board number and a 1..29 cobra-on-board number. Those are the two columns which are required for the FPGA, and which we currently hack around. rawfids = fiberids.FiberIds() fids = pd.DataFrame(data=rawfids.data) # In the data file, these are fld, mf, and cm fids = fids[['fieldId', 'moduleInFieldId', 'cobraInModuleId']] fids['module'] = (fids.fieldId - 1)*14 + fids.moduleInFieldId fids['board'] = (fids.module - 1)*2 + (fids.cobraInModuleId%2 == 0) + 1 fids['cobraInBoard'] = (fids.cobraInModuleId - 1)//2 + 1 |
| Comment by yuki.moritani [ 21/Apr/21 ] |
|
handled with |