aboutsummaryrefslogtreecommitdiff
path: root/julia/alignment-test.jl
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-12-18 11:41:30 +0100
committerThomas White <taw@physics.org>2024-02-06 16:59:34 +0100
commite437e0465f07f66e188613da9568d7fa7f19dec5 (patch)
tree0436d2796660cea4d880cfb8597b7eaf4adccb97 /julia/alignment-test.jl
parente532c6dd7f5344fcdacfdca54bd2810f05d87b65 (diff)
Julia: Add cell rotation
Diffstat (limited to 'julia/alignment-test.jl')
-rw-r--r--julia/alignment-test.jl7
1 files changed, 1 insertions, 6 deletions
diff --git a/julia/alignment-test.jl b/julia/alignment-test.jl
index e6e1ab63..6fec3256 100644
--- a/julia/alignment-test.jl
+++ b/julia/alignment-test.jl
@@ -16,18 +16,13 @@ function sketch_pattern(image, cr)
end
-function randomrotation(cell)
- rotatecell(cell, (1,0,0,0))
-end
-
-
function simulate_and_index(cell, image_true, dtempl_moved, n)
indexer = Indexer("asdf", dtempl_moved, cell, retry=false, multilattice=false, refine=true)
for _ in 1:n
- cr = Crystal(randomrotation(cell))
+ cr = Crystal(rotatecell(cell))
peaklist = sketch_pattern(image_true, cr)
image_moved = Image(dtempl_moved)