Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
bug fix
  • Loading branch information
georgematheos committed Jul 13, 2021
commit 70d1c2d6c905e9dbd583dfcebe5cd2d5b17f8e98
3 changes: 2 additions & 1 deletion src/modeling_library/switch/switch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function (gen_fn::Switch{C})(index::C, args...) where C
retval
end

include("trace.jl")

function to_serializable_trace(tr::SwitchTrace)
GenericST(to_serializable_trace(tr.branch), (tr.index, tr.retval, tr.args, tr.score, tr.noise))
end
Expand All @@ -41,7 +43,6 @@ function from_serializable_trace(c::GenericST, gf::Switch)
)
end

include("trace.jl")
include("assess.jl")
include("propose.jl")
include("simulate.jl")
Expand Down