diff options
author | Thomas White <taw@physics.org> | 2024-02-19 17:11:58 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-19 17:11:58 +0100 |
commit | 0da7d9d1208f273aeb557adaed3f3e0f6dcdfe5a (patch) | |
tree | 8ed415aa3ab434554d82c8c1d380a55e373422df /julia/process_hkl.jl | |
parent | 93181e995bcae77e69d0b7eb3e32abfdd4d0d738 (diff) |
Julia: Add Base.get!(::Reflist, indices)
Diffstat (limited to 'julia/process_hkl.jl')
-rw-r--r-- | julia/process_hkl.jl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/julia/process_hkl.jl b/julia/process_hkl.jl index ab2a6a20..ac6ec662 100644 --- a/julia/process_hkl.jl +++ b/julia/process_hkl.jl @@ -9,10 +9,7 @@ for (cr,reflections) in allcrystals(st) for refl in reflections indices = asymmetricindices(sym, refl.indices) - model_version = merged[indices] - if model_version === nothing - model_version = push!(merged, indices) - end + model_version = get!(merged, indices) w = 1.0 mean = model_version.intensity |