@@ -1076,13 +1076,15 @@ function copyGraph!(
1076
1076
overwriteDest:: Bool = false ,
1077
1077
deepcopyNodes:: Bool = false ,
1078
1078
verbose:: Bool = false ,
1079
+ showprogress:: Bool = false ,
1079
1080
)
1080
1081
# Split into variables and factors
1081
1082
sourceVariables = map (vId -> getVariable (sourceDFG, vId), variableLabels)
1082
1083
sourceFactors = map (fId -> getFactor (sourceDFG, fId), factorLabels)
1083
1084
1084
1085
# Now we have to add all variables first,
1085
- @showprogress " copy variables" for variable in sourceVariables
1086
+ @showprogress desc = " copy variables" enabled = showprogress for variable in
1087
+ sourceVariables
1086
1088
variableCopy = deepcopyNodes ? deepcopy (variable) : variable
1087
1089
if ! exists (destDFG, variable)
1088
1090
addVariable! (destDFG, variableCopy)
@@ -1093,7 +1095,7 @@ function copyGraph!(
1093
1095
end
1094
1096
end
1095
1097
# And then all factors to the destDFG.
1096
- @showprogress " copy factors" for factor in sourceFactors
1098
+ @showprogress desc = " copy factors" enabled = showprogress for factor in sourceFactors
1097
1099
# Get the original factor variables (we need them to create it)
1098
1100
sourceFactorVariableIds = collect (factor. _variableOrderSymbols)
1099
1101
# Find the labels and associated variables in our new subgraph
0 commit comments