mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-07-02 01:29:25 +09:00
new(create_database_from_exported_csvs): integrate slave log temp result
- breaking: add three columns(power_3v3d, power_3v3a, power_n3va) to single_result_table - modified sql statements in functions in import_data.jl to have more meaning - integrate to main `create_database_from_exported_csvs` func
This commit is contained in:
parent
14e938c589
commit
dda24bc68a
7 changed files with 117 additions and 17 deletions
1
test/input/.gitignore
vendored
1
test/input/.gitignore
vendored
|
@ -9,3 +9,4 @@ slavelogs/main/*
|
|||
!slavelogs/main/525_245_longrun.txt
|
||||
!slavelogs/main/430_100.txt
|
||||
!slavelogs/main/364_88_longrun.txt
|
||||
!slavelogs/main/127_172.txt
|
||||
|
|
|
@ -97,16 +97,25 @@ true || include("../src/PSBoardDataBase.jl")
|
|||
@test result.result_3v3d == 3.47
|
||||
@test result.result_3v3a == 2.91
|
||||
@test result.result_n3va == -3.01
|
||||
|
||||
lines = Iterators.Stateful(
|
||||
Iterators.drop(eachline("./input/slavelogs/main/127_172.txt"), 17),
|
||||
)
|
||||
result = PSBoardDataBase.SlaveLogParser.parse_power_section!(lines)
|
||||
@test result.result_3v3d == 7.65
|
||||
@test result.result_3v3a == 3.80
|
||||
@test result.result_n3va == -2.87
|
||||
@test result.fpga_temp == -63.21
|
||||
end
|
||||
|
||||
@testset "Recov" begin
|
||||
lines = Iterators.Stateful(
|
||||
Iterators.drop(eachline("./input/slavelogs/main/430_100.txt"), 1912)
|
||||
Iterators.drop(eachline("./input/slavelogs/main/430_100.txt"), 1912),
|
||||
)
|
||||
@test PSBoardDataBase.SlaveLogParser.parse_recov_section!(lines)
|
||||
|
||||
lines = Iterators.Stateful(
|
||||
Iterators.drop(eachline("./input/slavelogs/main/525_244.txt"), 1912)
|
||||
Iterators.drop(eachline("./input/slavelogs/main/525_244.txt"), 1912),
|
||||
)
|
||||
@test PSBoardDataBase.SlaveLogParser.parse_recov_section!(lines)
|
||||
|
||||
|
@ -240,6 +249,8 @@ true || include("../src/PSBoardDataBase.jl")
|
|||
@test PSBoardDataBase.add_skew_from_slave_clk_logs(db, "input/slavelogs/") |>
|
||||
isnothing
|
||||
|
||||
@test PSBoardDataBase.add_slavelog_result(db, "input/slavelogs/") |> isnothing
|
||||
|
||||
run(`sqlitebrowser $dbpath`)
|
||||
|
||||
@test PSBoardDataBase.create_database_from_exported_csvs(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue