blob: d89376cea7dd18d78ced476aea292a3b9ca88f50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
module DiffractionCalculations
import ..CrystFEL: libcrystfel
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::Crystal, image::Image; maxres=1e10)
refls = ccall((:predict_to_res, libcrystfel),
Ptr{InternalRefList},
(Ptr{InternalCrystal}, Ptr{InternalImage}, Cdouble),
cr.internalptr, image.internalptr, maxres)
sym = SymOpList("1")
return RefList{UnmergedReflection}(refls, sym)
end
end # of module
|