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

Test if PMTs are equal

parent 155c8308
No related branches found
No related tags found
1 merge request!34Draft: Detector toolkit
......@@ -145,11 +145,11 @@ end
datx = Detector(datapath("datx", "KM3NeT_00000133_20221025.datx"))
for field in fieldnames(Detector)
field == :modules && continue
if field == :locations
if field in (:locations, :pmts)
detx_locs = getfield(detx, field)
datx_locs = getfield(datx, field)
for key in keys(detx_locs)
@test isapprox(detx_locs[key], datx_locs[key]; atol=1e-06)
@test isapprox(detx_locs[key], datx_locs[key]; atol=1e-05)
end
continue
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