aboutsummaryrefslogtreecommitdiff
path: root/julia/CrystFEL
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-01-20 15:37:03 +0100
committerThomas White <taw@physics.org>2024-02-06 16:59:35 +0100
commit8fe6287bfc5335c47140fe7ba745de14b1376d2c (patch)
tree30819f07f324fc7d93d6ef79d9c43bb926789856 /julia/CrystFEL
parentbb1bd3e18471d03cded733ff9b177c8fdeade0c8 (diff)
Julia: predictreflections: add types
This is to stop me from putting the image and crystal the wrong way round.
Diffstat (limited to 'julia/CrystFEL')
-rw-r--r--julia/CrystFEL/src/diffcalc.jl6
1 files changed, 3 insertions, 3 deletions
diff --git a/julia/CrystFEL/src/diffcalc.jl b/julia/CrystFEL/src/diffcalc.jl
index 2e039a20..d89376ce 100644
--- a/julia/CrystFEL/src/diffcalc.jl
+++ b/julia/CrystFEL/src/diffcalc.jl
@@ -1,14 +1,14 @@
module DiffractionCalculations
import ..CrystFEL: libcrystfel
-import ..CrystFEL.Images: InternalImage
-import ..CrystFEL.Crystals: InternalCrystal
+import ..CrystFEL.Images: InternalImage, Image
+import ..CrystFEL.Crystals: InternalCrystal, Crystal
import ..CrystFEL.RefLists: RefList, UnmergedReflection, InternalRefList
import ..CrystFEL.Symmetry: SymOpList
export predictreflections
-function predictreflections(cr, image; maxres=1e10)
+function predictreflections(cr::Crystal, image::Image; maxres=1e10)
refls = ccall((:predict_to_res, libcrystfel),
Ptr{InternalRefList},
(Ptr{InternalCrystal}, Ptr{InternalImage}, Cdouble),