JuliaRobotics / IncrementalInference.jl
Showing 2 of 5 files from the diff.

@@ -33,7 +33,6 @@
Loading
33 33
  Statistics,
34 34
  Random,
35 35
  StatsBase,
36 -
  JLD2,
37 36
  BSON,
38 37
  FileIO,
39 38
  ProgressMeter,

@@ -1621,10 +1621,10 @@
Loading
1621 1621
1622 1622
Related
1623 1623
1624 -
IIF.loadTree, DFG.saveDFG, DFG.loadDFG, JLD2.@save, JLD2.@load
1624 +
IIF.loadTree, DFG.saveDFG, DFG.loadDFG, BSON.@save, BSON.@load
1625 1625
"""
1626 1626
function saveTree(treel::AbstractBayesTree,
1627 -
                  filepath=joinpath("/tmp","caesar","savetree.jld2") )
1627 +
                  filepath=joinpath("/tmp","caesar","savetree.bson") )
1628 1628
  #
1629 1629
  savetree = deepcopy(treel)
1630 1630
  for i in 1:length(getCliques(savetree))
@@ -1633,12 +1633,12 @@
Loading
1633 1633
    end
1634 1634
  end
1635 1635
1636 -
  JLD2.@save filepath savetree
1636 +
  BSON.@save(filepath, savetree)
1637 1637
  return filepath
1638 1638
end
1639 1639
1640 1640
function saveTree(treeArr::Vector{T},
1641 -
                  filepath=joinpath("/tmp","caesar","savetrees.jld2") ) where T <: AbstractBayesTree
1641 +
                  filepath=joinpath("/tmp","caesar","savetrees.bson") ) where T <: AbstractBayesTree
1642 1642
  #
1643 1643
  savetree = deepcopy(treeArr)
1644 1644
  for savtre in savetree, i in 1:length(getCliques(savtre))
@@ -1647,7 +1647,7 @@
Loading
1647 1647
    end
1648 1648
  end
1649 1649
1650 -
  JLD2.@save filepath savetree
1650 +
  BSON.@save(filepath, savetree)
1651 1651
  return filepath
1652 1652
end
1653 1653
@@ -1662,10 +1662,10 @@
Loading
1662 1662
1663 1663
Related
1664 1664
1665 -
IIF.saveTree, DFG.saveDFG, DFG.loadDFG, JLD2.@save, JLD2.@load
1665 +
[`saveTree`](@ref), [`saveDFG`](@ref), [`loadDFG`](@ref), `BSON.@save`, `BSON.@load`
1666 1666
"""
1667 -
function loadTree(filepath=joinpath("/tmp","caesar","savetree.jld2"))
1668 -
  data = @load filepath savetree
1667 +
function loadTree(filepath=joinpath("/tmp","caesar","savetree.bson"))
1668 +
  data = BSON.@load(filepath, savetree)
1669 1669
1670 1670
  # convert back to a type that which could not be serialized by JLD2
1671 1671
  if savetree isa Vector
Files Coverage
src 77.26%
Project Totals (67 files) 77.26%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading