fix: num tests for extra runs

This commit is contained in:
Wataru Otsubo 2024-09-13 16:44:49 +09:00 committed by qwjyh
parent 4eafc8bdc6
commit 773fe5083e

View file

@ -464,6 +464,14 @@ function prepare_100test_table(table::DataFrame)::DataFrame
df
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)
position_id_map =
["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,
:psboard_id,
:position,
100,
:num_tests,
:insufficient_reset_with_10,
:reset_failed_though_reconfig_done,
:always_hit_flag_true,
@ -554,6 +562,7 @@ function add_qaqc_100test_result(db::SQLite.DB, table::DataFrame)
runid = row.runid,
psboard_id = row.motherboard_id,
position = position_id_map[row.position],
num_tests = get_num_tests_for_extra_runs(row.runid),
insufficient_reset_with_10 = row.var"10回reset足りず",
reset_failed_though_reconfig_done = row.var"reconfig_done = 0なのにresetしていない",
always_hit_flag_true = row.var"always_hit_flag",