mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-07-03 18:20:39 +09:00
[new] Slave clock parser and function to insert into database
This commit is contained in:
parent
1422798c3a
commit
bf19ee3167
10 changed files with 1861 additions and 3 deletions
|
@ -16,6 +16,11 @@ true || include("../src/PSBoardDataBase.jl")
|
|||
@test masterlog_metadata.shiftscript_version == v"1.0.2"
|
||||
end
|
||||
|
||||
@testset "parse clk log" begin
|
||||
@test PSBoardDataBase.ClockParser.get_skew("input/slavelogs/main/230_51_clk.txt") |> ismissing
|
||||
@test PSBoardDataBase.ClockParser.get_skew("input/slavelogs/main/448_103_clk.txt") ≈ 12.000000000000000
|
||||
end
|
||||
|
||||
@testset "Download data csv" begin
|
||||
out = tempname()
|
||||
@test CSV.read(
|
||||
|
@ -100,6 +105,9 @@ true || include("../src/PSBoardDataBase.jl")
|
|||
@test PSBoardDataBase.add_qaqc_100test_result(db, extra_100test_result_df) |>
|
||||
isnothing
|
||||
|
||||
@test PSBoardDataBase.add_skew_from_slave_clk_logs(db, "input/slavelogs/") |>
|
||||
isnothing
|
||||
|
||||
run(`sqlitebrowser $dbpath`)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue