diff options
author | Thomas White <taw@physics.org> | 2023-12-20 13:53:06 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-06 16:59:35 +0100 |
commit | 713a1f382153cefe089c6eba0d7d8ec316055706 (patch) | |
tree | a81cc0427ee649925073ad7fb2cc0c73b71d3b7c /julia/partial_sim.jl | |
parent | 6f801ee7d0823ad952ce2478a026a5059f13b380 (diff) |
Julia: Add example (partial_sim in Julia)
Diffstat (limited to 'julia/partial_sim.jl')
-rw-r--r-- | julia/partial_sim.jl | 13 |
1 files changed, 13 insertions, 0 deletions
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 |