From 6a05f743abe8ab3091e287e22613adc3955c0897 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 26 Feb 2024 17:00:46 +0100 Subject: 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. --- julia/CrystFEL/src/reflists.jl | 4 ++-- 1 file 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 -- cgit v1.2.3