Skip to content
Snippets Groups Projects
Verified Commit 94b09031 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Extend tests for orientations

parent 68f1e93a
No related branches found
No related tags found
1 merge request!32Orientations readout and interpolation
......@@ -26,8 +26,13 @@ end
@testset "orientations" begin
o = read(datapath("calib", "KM3NeT_00000133_D_1.0.0_00017397_00017496_1.orientations.root"), Orientations)
@show o
module_id = 817589211
min_t, max_t = extrema(o.times[module_id])
Δt = max_t - min_t
@test [0.8260205110995139, 0.003912907129683348, -0.004395551387888641, -0.5636093359133512] == o(module_id, min_t)
@test [0.8289446524907407, 0.004590185819553083, -0.0007479055911552097, -0.5593113032456739] == o(module_id, max_t)
@test [0.8297266567631056, 0.002991865243189534, -0.004798371006076004, -0.5581412898494195] == o(module_id, min_t + Δt/2)
@test [0.8305219131347711, 0.003947997911424212, -0.0042572917986734805, -0.5569556899628482] == o(module_id, min_t + Δt/3)
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment