aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-12-22 11:48:51 +0100
committerThomas White <taw@physics.org>2024-02-06 16:59:35 +0100
commita3327d917c411a2b6f59475fb0c9b2b36589f1ae (patch)
treea17c219160460d8b6ee290afc13bf2b4c004083b
parenta08265b47bb25f8ac730641cf44659de660e814a (diff)
Julia: Add catch-all setproperty for image
This allows e.g. image.serial to be set.
-rw-r--r--julia/CrystFEL/src/image.jl3
1 files changed, 3 insertions, 0 deletions
diff --git a/julia/CrystFEL/src/image.jl b/julia/CrystFEL/src/image.jl
index b5f4f8d8..7a7ce76e 100644
--- a/julia/CrystFEL/src/image.jl
+++ b/julia/CrystFEL/src/image.jl
@@ -105,6 +105,9 @@ function Base.setproperty!(image::Image, name::Symbol, val)
else
throw(ArgumentError("Must be a PeakList"))
end
+ else
+ setproperty!(idata, name, val)
+ unsafe_store!(image.internalptr, idata)
end
end
end