aboutsummaryrefslogtreecommitdiff
path: root/julia/CrystFEL
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-01-20 10:34:48 +0100
committerThomas White <taw@physics.org>2024-02-06 16:59:35 +0100
commiteff54a2c23ee1d0d29f1af11af77881bd0c44b1e (patch)
tree4d0d7b7db87687f619224f9c2a5da5ce445b9101 /julia/CrystFEL
parent66f11f47e070c265a00b36b9517229d7e40f040a (diff)
Julia: translategroup: Add an exclamation point
Diffstat (limited to 'julia/CrystFEL')
-rw-r--r--julia/CrystFEL/src/CrystFEL.jl2
-rw-r--r--julia/CrystFEL/src/datatemplates.jl6
2 files changed, 4 insertions, 4 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,