Sample initial_workschool_mixing_matrix, which is the workschool distributions symmetrized for the full Canadian population, rather than subsets (as used in the ABM). This is used in IntervalsModel.
@@ -126,7 +126,7 @@ function weighted_degree(node,network::TimeDepMixingGraph)
weighted_degree=0
forg_listinnetwork.graph_list
forging_list
forjinneighbors(g.g,node)
forjinneighbors(g,node)
weighted_degree+=get_weight(g,GraphEdge(node,j))
end
end
...
...
@@ -140,17 +140,9 @@ function agents_step!(t,modelsol)
fornetworkinmodelsol.inf_network.graph_list[t]#this also resamples the soc network weights since they point to the same objects, but those are never used
sample_mixing_graph!(network)#get new contact weights