mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
fix: num tests for extra runs
This commit is contained in:
parent
4eafc8bdc6
commit
773fe5083e
1 changed files with 10 additions and 1 deletions
|
@ -464,6 +464,14 @@ function prepare_100test_table(table::DataFrame)::DataFrame
|
||||||
df
|
df
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function get_num_tests_for_extra_runs(runid::Int64)
|
||||||
|
if runid == 99
|
||||||
|
246
|
||||||
|
else
|
||||||
|
100
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function add_qaqc_100test_result(db::SQLite.DB, table::DataFrame)
|
function add_qaqc_100test_result(db::SQLite.DB, table::DataFrame)
|
||||||
position_id_map =
|
position_id_map =
|
||||||
["B-$i-$j" for i in 0:1 for j in 1:9] |> enumerate .|> (x -> begin
|
["B-$i-$j" for i in 0:1 for j in 1:9] |> enumerate .|> (x -> begin
|
||||||
|
@ -516,7 +524,7 @@ function add_qaqc_100test_result(db::SQLite.DB, table::DataFrame)
|
||||||
:runid,
|
:runid,
|
||||||
:psboard_id,
|
:psboard_id,
|
||||||
:position,
|
:position,
|
||||||
100,
|
:num_tests,
|
||||||
:insufficient_reset_with_10,
|
:insufficient_reset_with_10,
|
||||||
:reset_failed_though_reconfig_done,
|
:reset_failed_though_reconfig_done,
|
||||||
:always_hit_flag_true,
|
:always_hit_flag_true,
|
||||||
|
@ -554,6 +562,7 @@ function add_qaqc_100test_result(db::SQLite.DB, table::DataFrame)
|
||||||
runid = row.runid,
|
runid = row.runid,
|
||||||
psboard_id = row.motherboard_id,
|
psboard_id = row.motherboard_id,
|
||||||
position = position_id_map[row.position],
|
position = position_id_map[row.position],
|
||||||
|
num_tests = get_num_tests_for_extra_runs(row.runid),
|
||||||
insufficient_reset_with_10 = row.var"10回reset足りず",
|
insufficient_reset_with_10 = row.var"10回reset足りず",
|
||||||
reset_failed_though_reconfig_done = row.var"reconfig_done = 0なのにresetしていない",
|
reset_failed_though_reconfig_done = row.var"reconfig_done = 0なのにresetしていない",
|
||||||
always_hit_flag_true = row.var"always_hit_flag",
|
always_hit_flag_true = row.var"always_hit_flag",
|
||||||
|
|
Loading…
Add table
Reference in a new issue