diff options
author | Thomas White <taw@physics.org> | 2023-12-18 11:41:30 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-06 16:59:34 +0100 |
commit | e437e0465f07f66e188613da9568d7fa7f19dec5 (patch) | |
tree | 0436d2796660cea4d880cfb8597b7eaf4adccb97 /julia/alignment-test.jl | |
parent | e532c6dd7f5344fcdacfdca54bd2810f05d87b65 (diff) |
Julia: Add cell rotation
Diffstat (limited to 'julia/alignment-test.jl')
-rw-r--r-- | julia/alignment-test.jl | 7 |
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) |