update(SlaveLogParser): modify Recov parse and add to full parser

- including test cases for both section wise and Integrated
This commit is contained in:
Wataru Otsubo 2024-11-01 16:23:46 +09:00
parent 5ca921bcfc
commit f1db431f7e
2 changed files with 26 additions and 6 deletions

View file

@ -99,6 +99,20 @@ true || include("../src/PSBoardDataBase.jl")
@test result.result_n3va == -3.01
end
@testset "Recov" begin
lines = Iterators.Stateful(
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)
)
@test PSBoardDataBase.SlaveLogParser.parse_recov_section!(lines)
# Maybe add more cases
end
@testset "Integrated" begin
result = PSBoardDataBase.SlaveLogParser.parse_slavelog_file(
"./input/slavelogs/main/430_100.txt",
@ -107,6 +121,7 @@ true || include("../src/PSBoardDataBase.jl")
@test result.asdtp |> length |> ==(1)
@test result.power |> length |> ==(1)
@test result.power[1].result_3v3d == 3.43
@test result.recov[1]
@test PSBoardDataBase.SlaveLogParser.parse_slavelog_file(
"./input/slavelogs/main/525_244.txt",