We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e63e7 commit 4959b83Copy full SHA for 4959b83
2 files changed
src/entities/HomotopyDensity.jl
@@ -37,8 +37,9 @@ abstract type AbstractPartialTrait end
37
topologykind::HT
38
formkind::RF
39
statekind::T
40
- partial::PT = nothing & (ignore = true,) #TODO deprecated field, still needed for AMP.
41
- # partials field needed for AMP v0.15, will be JSON ignored in DFG v0.29, needs better solution by DFG v0.30
+ # FIXME, rename to subbmersion or deprecate completely?
+ """ partials field needed for AMP v0.15, will be JSON ignored in DFG v0.29, needs better solution by DFG v0.30 """
42
+ partial::PT = nothing & (ignore = true,)
43
end
44
45
StructUtils.structlike(::StructUtils.StructStyle, ::Type{<:HomotopyReprDFG}) = true
src/services/variable_ops.jl
@@ -211,7 +211,11 @@ isSolved, setSolvedCount!
211
"""
212
getSolvedCount(v::State) = v.solves
213
function getSolvedCount(v::VariableDFG, solveKey::Symbol = :default)
214
- return getState(v, solveKey) |> getSolvedCount
+ if hasState(v, solveKey)
215
+ return getState(v, solveKey) |> getSolvedCount
216
+ else
217
+ return 0
218
+ end
219
220
function getSolvedCount(dfg::AbstractDFG, sym::Symbol, solveKey::Symbol = :default)
221
return getSolvedCount(getVariable(dfg, sym), solveKey)
@@ -250,7 +254,11 @@ getSolved, setSolved!
250
254
251
255
isSolved(v::State) = 0 < v.solves
252
256
function isSolved(v::VariableDFG, solveKey::Symbol = :default)
253
- return getState(v, solveKey) |> isSolved
257
258
+ return getState(v, solveKey) |> isSolved
259
260
+ return false
261
262
263
function isSolved(dfg::AbstractDFG, sym::Symbol, solveKey::Symbol = :default)
264
return isSolved(getVariable(dfg, sym), solveKey)
0 commit comments