diff options
-rw-r--r-- | julia/CrystFEL/src/CrystFEL.jl | 2 | ||||
-rw-r--r-- | julia/CrystFEL/src/datatemplates.jl | 6 | ||||
-rw-r--r-- | julia/alignment-test.jl | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/julia/CrystFEL/src/CrystFEL.jl b/julia/CrystFEL/src/CrystFEL.jl index 63b636b1..431fb51e 100644 --- a/julia/CrystFEL/src/CrystFEL.jl +++ b/julia/CrystFEL/src/CrystFEL.jl @@ -46,7 +46,7 @@ export SymOpList include("datatemplates.jl") using .DataTemplates -export DataTemplate, loaddatatemplate, wavelength, cameralength, translategroup +export DataTemplate, loaddatatemplate, wavelength, cameralength, translategroup! include("peaklist.jl") using .PeakLists diff --git a/julia/CrystFEL/src/datatemplates.jl b/julia/CrystFEL/src/datatemplates.jl index b76a272e..7ede6843 100644 --- a/julia/CrystFEL/src/datatemplates.jl +++ b/julia/CrystFEL/src/datatemplates.jl @@ -3,7 +3,7 @@ module DataTemplates import ..CrystFEL: libcrystfel export DataTemplate, InternalDataTemplate, loaddatatemplate export wavelength, cameralength -export translategroup +export translategroup! # Represents the real C-side (opaque) structure. mutable struct InternalDataTemplate end @@ -85,14 +85,14 @@ end """ - translategroup(datatemplate, groupname, xshift, yshift, zshift) + translategroup!(datatemplate, groupname, xshift, yshift, zshift) Modifies `DataTemplate` by moving the specified panel group by the specified amount (in metres). Corresponds to CrystFEL C API function `data_template_translate_group`. """ -function translategroup(dtempl::DataTemplate, groupname, xshift, yshift, zshift) +function translategroup!(dtempl::DataTemplate, groupname, xshift, yshift, zshift) r = @ccall libcrystfel.data_template_translate_group_m(dtempl.internalptr::Ptr{InternalDataTemplate}, groupname::Cstring, xshift::Cdouble, diff --git a/julia/alignment-test.jl b/julia/alignment-test.jl index f5abe334..de4d284b 100644 --- a/julia/alignment-test.jl +++ b/julia/alignment-test.jl @@ -53,7 +53,7 @@ dtempl_true = loaddatatemplate("julia/alignment-test.geom") image_true = Image(dtempl_true) cell = UnitCell(MonoclinicLattice, PrimitiveCell, 123, 45, 80, 90, 97, 90) dtempl_moved = loaddatatemplate("julia/alignment-test.geom") -translategroup(dtempl_moved, "q1", 200e-6, 0, 0) +translategroup!(dtempl_moved, "q1", 200e-6, 0, 0) let mille = Mille("mille.dat") simulate_and_index(cell, image_true, dtempl_moved, mille, 100) close(mille) |