diff options
author | Thomas White <taw@physics.org> | 2023-12-22 11:48:51 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-06 16:59:35 +0100 |
commit | a3327d917c411a2b6f59475fb0c9b2b36589f1ae (patch) | |
tree | a17c219160460d8b6ee290afc13bf2b4c004083b | |
parent | a08265b47bb25f8ac730641cf44659de660e814a (diff) |
Julia: Add catch-all setproperty for image
This allows e.g. image.serial to be set.
-rw-r--r-- | julia/CrystFEL/src/image.jl | 3 |
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 |