Skip to content
Snippets Groups Projects
Commit a361474e authored by Zhirong Zhang's avatar Zhirong Zhang
Browse files

modify the flex registration function to accommodate for flex thickness and has interposer

parent ea92a684
No related branches found
No related tags found
1 merge request!137Add a script to interpose powerboards on itkpd.
This commit is part of merge request !137. Comments created here will be created in the context of that merge request.
......@@ -208,9 +208,15 @@ def getLatestTestRunByComponent(client, component, testType, stage=None):
return testRun
def registerFlexArray(client, panelid, flex_batch, arr_type='PB_FLEX_ARRAY_3V2'):
def registerFlexArray(client, panelid, flex_batch, arr_type='PB_FLEX_ARRAY_3V2', flex_thickness = None, has_interposer = None):
version, batch, number = parse_serial(panelid, fullsn=False)
properties_lib = {'VERSION':str(version), 'BATCH':batch, 'NUMBER':number}
if flex_thickness is not None:
properties_lib.update({'FLEX_THICKNESS': flex_thickness})
if has_interposer is not None:
properties_lib.update({'HAS_INTERPOSER': has_interposer})
regdata = {
'project':'S',
'subproject':'SB',
......@@ -219,7 +225,7 @@ def registerFlexArray(client, panelid, flex_batch, arr_type='PB_FLEX_ARRAY_3V2')
'type':arr_type,
'serialNumber':'20USBPF'+panelid,
'batches':{'PWB_FLEX_BATCH':flex_batch},
'properties':{'VERSION':str(version), 'BATCH':batch, 'NUMBER':number}
'properties': properties_lib
}
client.post('registerComponent', json=regdata)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment