aboutsummaryrefslogtreecommitdiff
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
parent66f11f47e070c265a00b36b9517229d7e40f040a (diff)
Julia: translategroup: Add an exclamation point
-rw-r--r--julia/CrystFEL/src/CrystFEL.jl2
-rw-r--r--julia/CrystFEL/src/datatemplates.jl6
-rw-r--r--julia/alignment-test.jl2
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)