From fef45a2545c76c155f98149a262f671ca411e1b5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 16 Apr 2024 09:53:20 +0200 Subject: alignment-test.jl: Round peak coordinates to one pixel, to get realistic errors --- julia/alignment-test.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/julia/alignment-test.jl b/julia/alignment-test.jl index 43a22a23..e66547be 100644 --- a/julia/alignment-test.jl +++ b/julia/alignment-test.jl @@ -10,7 +10,7 @@ function sketch_pattern(image, cr) for refl in reflist if randn() > 0 let dpos = refl.detectorposition - push!(peaklist, dpos.fs, dpos.ss, dpos.panelnumber, 100.0) + push!(peaklist, round(dpos.fs), round(dpos.ss), dpos.panelnumber, 100.0) end end end -- cgit v1.2.3