aboutsummaryrefslogtreecommitdiff
path: root/julia/alignment-test.jl
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-10-26 14:00:43 +0200
committerThomas White <taw@physics.org>2024-02-06 16:59:34 +0100
commitef0611804113ae6dfb66ee4168f2a22f51f81920 (patch)
treed0c06e38db3b71d9cb53d2235e2ba5a7572fef34 /julia/alignment-test.jl
parentf9fe0992b4f03eec44b51274a179aee64f172e5a (diff)
Julia: Get rid of DetGeom construction from panels
It's theoretically possible, but rather complicated from Julia. It's not something that's really supported from the C API either, so I don't see much reason to bend over backwards to make it work from Julia. We will keep the access to the detgeom panel structure elements, though.
Diffstat (limited to 'julia/alignment-test.jl')
-rw-r--r--julia/alignment-test.jl10
1 files changed, 2 insertions, 8 deletions
diff --git a/julia/alignment-test.jl b/julia/alignment-test.jl
index df1e1fbc..21aff531 100644
--- a/julia/alignment-test.jl
+++ b/julia/alignment-test.jl
@@ -1,13 +1,7 @@
using CrystFEL
-panels = [Panel("q1", 512, 512, (-530, -530), 0.1, (1, 0, 0), (0, 1, 0), 100e-6, 1),
- Panel("q2", 512, 512, (28, -530), 0.1, (1, 0, 0), (0, 1, 0), 100e-6, 1),
- Panel("q3", 512, 512, (-530, 28), 0.1, (1, 0, 0), (0, 1, 0), 100e-6, 1),
- Panel("q4", 512, 512, (28, 28), 0.1, (1, 0, 0), (0, 1, 0), 100e-6, 1)]
-
-detgeom = DetGeom(panels)
-
-image = Image(detgeom)
+dtempl = loaddatatemplate("julia/alignment-test.geom")
+image = Image(dtempl)
cell = UnitCell(123, 45, 80, 90, 97, 90)