Skip to content

Commit

Permalink
Merge pull request #1274 from JuliaRobotics/21Q2/enh/miniregex
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann authored Jun 18, 2021
2 parents 544d443 + 9935da2 commit 6d8c8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SolverUtilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function _checkVariableByReference( fg::AbstractDFG,
refKey::Symbol=:simulated,
prior = DFG._getPriorType(srcType)( MvNormal(getPPE(fg[srcLabel], refKey).suggested, diagm(ones(getDimension(srcType)))) ),
atol::Real = 1e-3,
destPrefix::Symbol = match(r"[a-zA-Z]+", destRegex.pattern).match |> Symbol,
destPrefix::Symbol = match(r"[a-zA-Z_]+", destRegex.pattern).match |> Symbol,
srcNumber = match(r"\d+", string(srcLabel)).match |> x->parse(Int,x),
overridePPE=nothing )
#
Expand Down Expand Up @@ -235,7 +235,7 @@ function _checkVariableByReference( fg::AbstractDFG,
refKey::Symbol=:simulated,
prior = typeof(factor)( MvNormal(getParametricMeasurement(factor)...) ),
atol::Real = 1e-3,
destPrefix::Symbol = match(r"[a-zA-Z]+", destRegex.pattern).match |> Symbol,
destPrefix::Symbol = match(r"[a-zA-Z_]+", destRegex.pattern).match |> Symbol,
srcNumber = match(r"\d+", string(srcLabel)).match |> x->parse(Int,x),
overridePPE=nothing )
#
Expand Down

0 comments on commit 6d8c8cb

Please sign in to comment.