mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-07 21:45:43 +09:00
update: format pllld_count.jl
This commit is contained in:
parent
1afd340575
commit
dbc26816ee
1 changed files with 22 additions and 31 deletions
|
@ -16,6 +16,7 @@ begin
|
|||
using FHist
|
||||
using LinearAlgebra
|
||||
using Printf
|
||||
using PlutoUI
|
||||
end
|
||||
|
||||
# ╔═╡ 3fccbdca-9856-4122-8597-9f267f90d390
|
||||
|
@ -24,8 +25,13 @@ md"""
|
|||
第6回 PS-Board QAQC キャンペーンの11_27のファームウェアを使った100回試験において、PLLLD fail countの数の分布の調査
|
||||
"""
|
||||
|
||||
# ╔═╡ b9808518-95aa-464f-bb93-b4ee40ce2f57
|
||||
PSBoardDataBase.SlaveLogParser.parse_slavelog_file
|
||||
# ╔═╡ 3e844f3d-0017-41ae-9632-ae0f7e2b03f7
|
||||
TableOfContents()
|
||||
|
||||
# ╔═╡ 26954da1-0820-490d-aa3e-79fd3603d28a
|
||||
md"""
|
||||
# データベース読み込み
|
||||
"""
|
||||
|
||||
# ╔═╡ a36886af-ff32-4f4f-a20f-f83bc333b8fd
|
||||
db = SQLite.DB("../psboard_qaqc.db")
|
||||
|
@ -46,6 +52,16 @@ qaqc_extra_run_campaign_6 = let
|
|||
filter(:runid => in(runids_campaign_6), qaqc_extra_run_results)
|
||||
end
|
||||
|
||||
# ╔═╡ 0282181f-2607-43b6-8456-813c2636dabf
|
||||
md"""
|
||||
# 解析
|
||||
"""
|
||||
|
||||
# ╔═╡ ecb09aa6-7f2e-4ef7-a081-348a219272e0
|
||||
md"""
|
||||
## PLLLD fail count
|
||||
"""
|
||||
|
||||
# ╔═╡ 41da581f-0cdf-40f3-a1f8-bf1bd7f8835b
|
||||
map(eachrow(qaqc_extra_run_campaign_6)) do row
|
||||
logfilename = "$(row.psboard_id)_$(row.runid)_longrun.txt"
|
||||
|
@ -60,24 +76,6 @@ map(eachrow(qaqc_extra_run_campaign_6)) do row
|
|||
end
|
||||
end
|
||||
|
||||
# ╔═╡ 2d89b7dc-37b6-4309-a2e6-61b93fb94628
|
||||
transform(
|
||||
qaqc_extra_run_campaign_6,
|
||||
[:psboard_id, :runid] =>
|
||||
ByRow(
|
||||
(psboard_id, runid) -> begin
|
||||
logfilename = "$(psboard_id)_$(runid)_longrun.txt"
|
||||
logfile = joinpath("../test/input/slavelogs/main/", logfilename)
|
||||
!ispath(logfile) && return missing
|
||||
slave_result =
|
||||
PSBoardDataBase.SlaveLogParser.parse_slavelog_file(logfile)
|
||||
map(slave_result.asdtp) do asdtp_result
|
||||
asdtp_result.pllld_fail_counter
|
||||
end
|
||||
end,
|
||||
) => :pllld_count,
|
||||
)
|
||||
|
||||
# ╔═╡ 34ae2948-bb5a-4086-beb1-cfb77593d678
|
||||
df_pllld_counts = combine(
|
||||
groupby(qaqc_extra_run_campaign_6, :id),
|
||||
|
@ -119,14 +117,6 @@ unique(df_pllld_counts.psboard_id) |> sort
|
|||
# ╔═╡ 0433bbe4-1f71-4cf7-96ec-ac9c70170feb
|
||||
stephist(df_pllld_counts.pllld_count)
|
||||
|
||||
# ╔═╡ 4927e97b-0822-4f17-bae9-e43cad504c3b
|
||||
stephist(
|
||||
df_pllld_counts.pllld_count,
|
||||
bins = 0:10,
|
||||
normalization = :probability,
|
||||
axis = (; yscale = log10, limits = ((1, 11), (1e-6, 2))),
|
||||
)
|
||||
|
||||
# ╔═╡ f04d5c95-7308-4129-ba95-49da2e142d5d
|
||||
let
|
||||
h1 = Hist1D(df_pllld_counts.pllld_count; binedges = 1:1:10, overflow = false)
|
||||
|
@ -167,18 +157,19 @@ end
|
|||
# ╔═╡ Cell order:
|
||||
# ╠═3fccbdca-9856-4122-8597-9f267f90d390
|
||||
# ╠═635dcf78-b6b3-11ef-3a04-f5b7c43ed12d
|
||||
# ╠═b9808518-95aa-464f-bb93-b4ee40ce2f57
|
||||
# ╠═3e844f3d-0017-41ae-9632-ae0f7e2b03f7
|
||||
# ╟─26954da1-0820-490d-aa3e-79fd3603d28a
|
||||
# ╠═a36886af-ff32-4f4f-a20f-f83bc333b8fd
|
||||
# ╠═df5087be-18de-4714-b6d8-4ab54271b1fb
|
||||
# ╠═56d8896a-40e3-46e3-aa28-82f89476743b
|
||||
# ╠═08032250-5893-445c-8662-459e5636ba81
|
||||
# ╠═013948ff-ccde-4222-862b-7ecda62fd7f1
|
||||
# ╟─0282181f-2607-43b6-8456-813c2636dabf
|
||||
# ╟─ecb09aa6-7f2e-4ef7-a081-348a219272e0
|
||||
# ╠═41da581f-0cdf-40f3-a1f8-bf1bd7f8835b
|
||||
# ╠═2d89b7dc-37b6-4309-a2e6-61b93fb94628
|
||||
# ╠═34ae2948-bb5a-4086-beb1-cfb77593d678
|
||||
# ╠═c084b8f4-dbc2-497b-9132-7e4bd4fd3874
|
||||
# ╠═6d85cc29-0d02-43b4-8a50-57f003e4686b
|
||||
# ╠═e95447c1-a8e2-4a46-9320-e1a88d9e34da
|
||||
# ╠═0433bbe4-1f71-4cf7-96ec-ac9c70170feb
|
||||
# ╠═4927e97b-0822-4f17-bae9-e43cad504c3b
|
||||
# ╠═f04d5c95-7308-4129-ba95-49da2e142d5d
|
||||
|
|
Loading…
Add table
Reference in a new issue