Skip to content

Commit

Permalink
Fix using LISTENER_TAG
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel committed Dec 14, 2023
1 parent 532e518 commit 9c8bbfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RecoPlans/Serialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9c8bbfc

Please sign in to comment.