diff options
author | Thomas White <taw@physics.org> | 2023-11-16 16:36:02 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-06 16:59:34 +0100 |
commit | 793d4e1f725a9cf3a569ef95cdd8fdca080219d7 (patch) | |
tree | 8d63d59d233224484ddb842870a1fd9f646d98a2 | |
parent | 3e467fb7f9ed331212ee2434eee8afd0355b96ff (diff) |
Julia: CrystFEL.Indexing.Indexer: Fix tolerance parameter
-rw-r--r-- | julia/CrystFEL/src/indexing.jl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/julia/CrystFEL/src/indexing.jl b/julia/CrystFEL/src/indexing.jl index 3e4423a1..60e293d9 100644 --- a/julia/CrystFEL/src/indexing.jl +++ b/julia/CrystFEL/src/indexing.jl @@ -76,9 +76,17 @@ function Indexer(methods, dtempl, cell; tolerances=(0.05,0.05,0.05,1.5,1.5,1.5), end end + tols = Vector{Cfloat}(undef, 6) + tols[1] = tolerances[1] + tols[2] = tolerances[2] + tols[3] = tolerances[3] + tols[4] = deg2rad(tolerances[4]) + tols[5] = deg2rad(tolerances[5]) + tols[6] = deg2rad(tolerances[6]) + out = @ccall libcrystfel.setup_indexing(methods::Cstring, cell.internalptr::Ptr{InternalUnitCell}, - tolerances::Ref{NTuple{6,Cdouble}}, + tols::Ptr{Cfloat}, flags::Cint, wavelength_estimate::Cdouble, clen_estimate::Cdouble, |