aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-02-26 17:00:46 +0100
committerThomas White <taw@physics.org>2024-02-26 17:00:46 +0100
commit6a05f743abe8ab3091e287e22613adc3955c0897 (patch)
treeb4798b39d3156fa421f6a1ed1d0cd207f1e8e810
parentb3b0a89f49a787bfe3ce5f9632832bc756cb2039 (diff)
Julia: RefList: Return indices as vectors, not tuples
We're going to be doing a lot of linear algebra with these numbers, so this makes more sense.
-rw-r--r--julia/CrystFEL/src/reflists.jl4
1 files changed, 2 insertions, 2 deletions
diff --git a/julia/CrystFEL/src/reflists.jl b/julia/CrystFEL/src/reflists.jl
index d922bdae..ba7311da 100644
--- a/julia/CrystFEL/src/reflists.jl
+++ b/julia/CrystFEL/src/reflists.jl
@@ -230,7 +230,7 @@ function indices(refl::Reflection)
ccall((:get_indices, libcrystfel),
Cint, (Ptr{InternalReflection},Ref{Cint},Ref{Cint},Ref{Cint}),
refl.internalptr, h, k, l)
- (h[], k[], l[])
+ [h[], k[], l[]]
end
@@ -241,7 +241,7 @@ function symmetricindices(refl::Reflection)
ccall((:get_symmetric_indices, libcrystfel),
Cint, (Ptr{InternalReflection},Ref{Cint},Ref{Cint},Ref{Cint}),
refl.internalptr, h, k, l)
- (h[], k[], l[])
+ [h[], k[], l[]]
end