Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Test Result Reporting
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Berkeley Lab
pbv3_test_adapter
Test Result Reporting
Commits
cf45bf1b
Commit
cf45bf1b
authored
3 months ago
by
Zhicai Zhang
Browse files
Options
Downloads
Patches
Plain Diff
customize if use glass beads
parent
db66a88c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
database/pbv3_add_interposer.py
+4
-4
4 additions, 4 deletions
database/pbv3_add_interposer.py
with
4 additions
and
4 deletions
database/pbv3_add_interposer.py
+
4
−
4
View file @
cf45bf1b
...
...
@@ -68,7 +68,7 @@ def read_panel(client, panel_ls):
# Arguments: a list of PWB ID
# Returns: NA
# ------------------------------------------
def
load_interposer
(
client
,
PWB_ls
,
check_interposer
=
True
):
def
load_interposer
(
client
,
PWB_ls
,
use_glassbead
=
True
,
check_interposer
=
True
):
component_template
=
client
.
get
(
'
generateComponentTypeDtoSample
'
,
json
=
{
'
project
'
:
'
S
'
,
'
code
'
:
'
PWB_INTERPOSER
'
})
for
PWB_ID
in
PWB_ls
:
...
...
@@ -101,7 +101,7 @@ def load_interposer(client, PWB_ls, check_interposer=True):
"
parent
"
:
PWB_ID
,
"
child
"
:
new_interposer
[
'
component
'
][
'
code
'
],
"
properties
"
:
{
"
GLASS_BEADS_USED
"
:
True
,
"
GLASS_BEADS_USED
"
:
use_glassbead
,
'
INTERPOSER_MATERIAL
'
:
'
Kapton
'
,
'
INTERPOSER_THICKNESS
'
:
50
,
'
INTERPOSER_ADHESIVE
'
:
'
SE4445
'
,
...
...
@@ -121,9 +121,9 @@ def load_interposer(client, PWB_ls, check_interposer=True):
# Arguments: panel id
# Returns: NA
# ------------------------------------------
def
load_interposer_for_panel
(
client
,
panel_id
,
check_interposer_in
=
True
):
def
load_interposer_for_panel
(
client
,
panel_id
,
use_glassbead_in
=
True
,
check_interposer_in
=
True
):
pwb_ls_in
=
read_panel
(
client
,
[
panel_id
])
load_interposer
(
client
,
pwb_ls_in
,
check_interposer
=
check_interposer_in
)
load_interposer
(
client
,
pwb_ls_in
,
use_glassbead
=
use_glassbead_in
,
check_interposer
=
check_interposer_in
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment