Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm temp flatten #282

Merged
merged 1 commit into from
May 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions src/factors/flux/FluxModelsPose2Pose2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# the factor definitions
export FluxModelsPose2Pose2, sampleFluxModelsPose2Pose2, PackedFluxModelsPose2Pose2
# some utilities
export flattenFactorModel
export setShuffleAll!, setNaiveFracAll!


Expand Down Expand Up @@ -254,16 +253,6 @@ end

## Utilities

# return dict that can be stored as JSON
function flattenFactorModel(d::FluxModelsPose2Pose2)
packed = convert(PackedFluxModelsPose2Pose2, d)
retdict = Dict{Symbol, Any}()
retdict[:joyVelData] = packed.joyVelData
retdict[:naiveModel] = packed.naiveModel
retdict[:naiveFrac] = packed.naiveFrac
retdict[:modelWeightsAll] = packed.modelWeightsAll
return retdict
end

function setShuffleAll!(dfg::AbstractDFG, shuf::Bool)
fs = lsf(dfg, FluxModelsPose2Pose2)
Expand All @@ -278,4 +267,5 @@ function setNaiveFracAll!(dfg::AbstractDFG, frac::Real)
end



#