aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-04-16 09:53:20 +0200
committerThomas White <taw@physics.org>2024-04-16 09:53:20 +0200
commitfef45a2545c76c155f98149a262f671ca411e1b5 (patch)
tree9320235381f85a5b86b681cff33464f4fa57fd00
parent515bf55242c379f5ba4c0c6d15899e573ea08378 (diff)
alignment-test.jl: Round peak coordinates to one pixel, to get realistic errors
-rw-r--r--julia/alignment-test.jl2
1 files changed, 1 insertions, 1 deletions
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