You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -138,7 +139,7 @@ function soft_dependencies(d::DependencyGraph{Dict{Symbol,HardDependencyNode}},
138
139
end
139
140
140
141
# For multiscale mapping:
141
-
functionsoft_dependencies_multiscale(soft_dep_graphs_roots::DependencyGraph{Dict{String,Any}}, mapping::Dict{String,A}, hard_dep_dict::Dict{Pair{Symbol,String},HardDependencyNode}) where {A<:Any}
142
+
functionsoft_dependencies_multiscale(soft_dep_graphs_roots::DependencyGraph{Dict{String,Any}}, mapping::Dict{String,A}, hard_dep_dict::Dict{Pair{Symbol,String},HardDependencyNode}) where {A<:Any}
@@ -298,13 +299,13 @@ function soft_dependencies_multiscale(soft_dep_graphs_roots::DependencyGraph{Dic
298
299
)
299
300
end
300
301
301
-
302
+
302
303
if!(i in parent_node.children) # && error("Cyclic dependency detected for process $proc from organ $organ.")
303
304
304
305
# Add the current node as a child of the node on which it depends:
305
306
push!(parent_node.children, i)
306
307
end
307
-
# Add the node on which the current node depends as a parent
308
+
# Add the node on which the current node depends as a parent
308
309
if i.parent ===nothing
309
310
# If the node had no parent already, it is nothing, so we change into a vector
310
311
i.parent = [parent_node]
@@ -315,7 +316,7 @@ function soft_dependencies_multiscale(soft_dep_graphs_roots::DependencyGraph{Dic
315
316
end
316
317
317
318
# Add the multiscale soft dependencies variables of the parent to the current node
318
-
i.parent_vars =NamedTuple(Symbol(k) =>NamedTuple(v) for (k, v) in soft_deps_multiscale)
319
+
i.parent_vars =NamedTuple(Symbol(k) =>NamedTuple(v) for (k, v) in soft_deps_multiscale)
319
320
end
320
321
end
321
322
end
@@ -488,9 +489,9 @@ function search_inputs_in_multiscale_output(process, organ, inputs, soft_dep_gra
488
489
# Avoid collecting variables at other scales if they come from a hard dependency
489
490
# They are handled internally by the hard dep, so if a hard dependency contains that variable, don't add it
490
491
# (This only needs to be done one level beneath the soft dependency nodes, any hard dependencies internal to another one don't expose their variables here)
0 commit comments