[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 INSTRM-1138 claims that the mod column is confusing since it is from fiber ferrule ID, not from the board ID. There is no column describing module id itself. So the following update (copy from INSTRM-1124) is needed:

  • could you add a "module" columns which would be 1-42 module number. ($fld-1)*42 + $mf, I think.
  • could you add a "board number" column (1A, 1B, ... 42A, 42B), where the board is A if $cm is odd, B if $cm is even. Or I guess just A/B, and we could use the "module" column for the module.

 



 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 INSTRM-1195

Generated at Sat Feb 10 16:32:52 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.