From 8fe6287bfc5335c47140fe7ba745de14b1376d2c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 20 Jan 2024 15:37:03 +0100 Subject: Julia: predictreflections: add types This is to stop me from putting the image and crystal the wrong way round. --- julia/CrystFEL/src/diffcalc.jl | 6 +++--- 1 file 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), -- cgit v1.2.3