use net conns after snow2 instead of recalculating the conns using find_conns [ci skip]
"source": [
"snow = ps.networks.snow2(im, boundary_width=0, parallelization = None)\n",
"regions = snow.regions\n",
- "conns = ps.networks.find_conns(regions)\n",
- "size_factors = ps.networks.AI_diffusive_size_factor(regions, model= model, g_train=g_train, throat_conns=conns)\n",
"net = snow.network\n",
+ "conns = net['throat.conns']\n",
+ "size_factors = ps.networks.AI_diffusive_size_factor(regions, model= model, g_train=g_train, throat_conns=conns)\n",
"net['throat.AI_diffusive_size_factor']= size_factors"
]
},
