From 713a1f382153cefe089c6eba0d7d8ec316055706 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 20 Dec 2023 13:53:06 +0100 Subject: Julia: Add example (partial_sim in Julia) --- julia/partial_sim.jl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 julia/partial_sim.jl (limited to 'julia/partial_sim.jl') diff --git a/julia/partial_sim.jl b/julia/partial_sim.jl new file mode 100644 index 00000000..73fba066 --- /dev/null +++ b/julia/partial_sim.jl @@ -0,0 +1,13 @@ +using CrystFEL + +dtempl = loaddatatemplate("julia/alignment-test.geom") +cell = UnitCell(MonoclinicLattice, PrimitiveCell, 123, 45, 80, 90, 97, 90) +let st = Stream("partials.stream", "w", dtempl) + for i in 1:10 + println("Writing image ", i) + image = Image(dtempl) + cr = Crystal(rotatecell(cell)) + reflist = predictreflections(cr, image) + chunkwrite(st, image) + end +end -- cgit v1.2.3