mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
update: existing example notebooks
This commit is contained in:
parent
9520a2021e
commit
d0058f7f7b
2 changed files with 44 additions and 6 deletions
|
@ -59,6 +59,11 @@ md"""
|
|||
# 100回じゃない試験
|
||||
"""
|
||||
|
||||
# ╔═╡ f1ce8e2a-f54e-4462-953f-66c6b2e82cdb
|
||||
md"""
|
||||
# Clock fail
|
||||
"""
|
||||
|
||||
# ╔═╡ ec2d40f7-1e06-414d-9a77-9e3489ba271c
|
||||
md"""
|
||||
# その他コード
|
||||
|
@ -129,6 +134,12 @@ single_result_for_id = filter(
|
|||
qaqc_single_result,
|
||||
);
|
||||
|
||||
# ╔═╡ 5954d52e-f939-4bff-be2b-4fe261ae15de
|
||||
filter(
|
||||
:clock => !=(1),
|
||||
qaqc_single_result
|
||||
)[!, [:id, :runid, :psboard_id, :clock, :lvds_tx_skew, :note]]
|
||||
|
||||
# ╔═╡ 23167971-4671-4f18-84df-72a7dc5938e1
|
||||
qaqc_positions = DBInterface.execute(
|
||||
db,
|
||||
|
@ -271,6 +282,14 @@ filter(
|
|||
qaqc_dispatch
|
||||
);
|
||||
|
||||
# ╔═╡ 68acb602-dc99-4bb7-9aba-34b47ff875fc
|
||||
DBInterface.execute(
|
||||
db,
|
||||
sql"""
|
||||
select * from ps_boards
|
||||
""",
|
||||
) |> DataFrame
|
||||
|
||||
# ╔═╡ 00000000-0000-0000-0000-000000000001
|
||||
PLUTO_PROJECT_TOML_CONTENTS = """
|
||||
[deps]
|
||||
|
@ -715,11 +734,11 @@ version = "17.4.0+2"
|
|||
# ╟─8440a1de-12fe-4bb7-907f-52f933934ec0
|
||||
# ╟─a7c1ae88-34dc-445c-ad2c-3879192d13c7
|
||||
# ╟─0299d5b7-8b9f-44ae-a2cf-3db36e1f857a
|
||||
# ╠═6ceb198e-edd3-4954-b1ff-beef33c3f205
|
||||
# ╟─6ceb198e-edd3-4954-b1ff-beef33c3f205
|
||||
# ╟─7a11e460-8d6f-454c-8fe6-33c59eeb4937
|
||||
# ╟─ed7c40fe-f966-4afb-a962-896c9f109946
|
||||
# ╟─a85b4f19-82e4-40d5-af9f-d5286578b1fb
|
||||
# ╠═45828bb4-e9f5-46d5-8f48-88284f318cc4
|
||||
# ╟─45828bb4-e9f5-46d5-8f48-88284f318cc4
|
||||
# ╟─192c47a3-7202-4351-8638-ec49ecb901c5
|
||||
# ╟─51370abb-f0fb-4ae0-b488-bf9fc776577c
|
||||
# ╟─1287b479-cce9-4eb1-949b-9da7d0329c24
|
||||
|
@ -728,6 +747,8 @@ version = "17.4.0+2"
|
|||
# ╟─1e9ab6b0-b25d-44ad-92ae-f12f92d91d5e
|
||||
# ╟─1d90c687-7e67-43ed-b5bf-68ef9040dc95
|
||||
# ╠═0518af44-878e-4052-b4d4-e7fb3c35efea
|
||||
# ╟─f1ce8e2a-f54e-4462-953f-66c6b2e82cdb
|
||||
# ╠═5954d52e-f939-4bff-be2b-4fe261ae15de
|
||||
# ╟─ec2d40f7-1e06-414d-9a77-9e3489ba271c
|
||||
# ╠═d3c95316-7ffb-11ef-1e2c-2934f89a2336
|
||||
# ╠═31b74828-fdc7-4b04-8be0-ea44820f9555
|
||||
|
@ -741,5 +762,6 @@ version = "17.4.0+2"
|
|||
# ╠═a77ccf6b-db67-4a07-833a-210afccc39e5
|
||||
# ╠═e312d48d-9d8d-4f42-b134-7fe3023df270
|
||||
# ╠═79703745-6c0e-4201-a58d-e75994fab4e4
|
||||
# ╠═68acb602-dc99-4bb7-9aba-34b47ff875fc
|
||||
# ╟─00000000-0000-0000-0000-000000000001
|
||||
# ╟─00000000-0000-0000-0000-000000000002
|
||||
|
|
|
@ -13,6 +13,8 @@ begin
|
|||
using Tables
|
||||
using DataFrames
|
||||
using Dates
|
||||
using Statistics
|
||||
using Printf
|
||||
using CairoMakie
|
||||
end
|
||||
|
||||
|
@ -103,14 +105,26 @@ end
|
|||
# ╔═╡ b23f3f63-4c6f-476f-aab8-22069940325e
|
||||
let
|
||||
skews = skews_for_each_board.lvds_tx_skew |> skipmissing |> collect
|
||||
stephist(
|
||||
fig, ax, shist = stephist(
|
||||
skews,
|
||||
bins = range(minimum(skews), maximum(skews), step = 1 / 57),
|
||||
bins = range(minimum(skews), maximum(skews), step = 4 / 57),
|
||||
axis = (;
|
||||
title = "skews of latest measurement for each board",
|
||||
title = "skews of the latest measurements for each board",
|
||||
xlabel = "skew / ns",
|
||||
)
|
||||
)
|
||||
Legend(
|
||||
fig[1, 1],
|
||||
[shist,],
|
||||
["n = $(length(skews)), μ = $(@sprintf "%.2g" mean(skews)), σ = $(@sprintf "%.2g" std(skews))",],
|
||||
tellheight = false,
|
||||
tellwidth = false,
|
||||
margin = (10, 10, 10, 10),
|
||||
halign = :left,
|
||||
valign = :top,
|
||||
)
|
||||
|
||||
fig
|
||||
end
|
||||
|
||||
# ╔═╡ 1306b44d-781f-4948-ba39-734c92dc6b8c
|
||||
|
@ -207,7 +221,9 @@ DBInterface = "a10d1c49-ce27-4219-8d33-6db1a4562965"
|
|||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
|
||||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
||||
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
|
||||
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
|
||||
SQLite = "0aa819cd-b072-5ff4-a722-6bc24af294d9"
|
||||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
|
||||
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
|
||||
TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
|
||||
|
||||
|
@ -227,7 +243,7 @@ PLUTO_MANIFEST_TOML_CONTENTS = """
|
|||
|
||||
julia_version = "1.10.5"
|
||||
manifest_format = "2.0"
|
||||
project_hash = "7b74b76d2fac94a9453c783e4adc8c6725fe2d03"
|
||||
project_hash = "520d318d0e1f3d66476b72d20eb4bb96d48f16d8"
|
||||
|
||||
[[deps.AbstractFFTs]]
|
||||
deps = ["LinearAlgebra"]
|
||||
|
|
Loading…
Add table
Reference in a new issue