From 9c8bbfc819e58f4056fa30fc2c751b2991e15ae4 Mon Sep 17 00:00:00 2001 From: nHackel Date: Thu, 14 Dec 2023 17:00:42 +0100 Subject: [PATCH] Fix using LISTENER_TAG --- src/RecoPlans/Serialization.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RecoPlans/Serialization.jl b/src/RecoPlans/Serialization.jl index 08d92d2..fb2beaf 100644 --- a/src/RecoPlans/Serialization.jl +++ b/src/RecoPlans/Serialization.jl @@ -158,8 +158,8 @@ function loadListeners!(root::RecoPlan, plan::RecoPlan{T}, dict, modDict) where loadListeners!(root, plan.parameter, dict["parameter"], modDict) end function loadListeners!(root::RecoPlan, plan::RecoPlan{T}, dict, modDict) where {T<:AbstractImageReconstructionParameters} - if haskey(dict, ".listener") - for (property, listenerDicts) in dict[".listener"] + if haskey(dict, LISTENER_TAG) + for (property, listenerDicts) in dict[LISTENER_TAG] for listenerDict in listenerDicts listener = loadListener(root, listenerDict, modDict) addListener!(plan, Symbol(property), listener)