I renamed S to sim, to avoid confusion with solar insulation later.
The plot_state function called as_png, but later we call as_svg on the result. This combination made things quite slow -- it's probably my fault that both were in the code, sorry!
The simulation is now very fast! You can get about 10 frames per second.
I renamed S to
sim
, to avoid confusion with solar insulation later.The
plot_state
function calledas_png
, but later we callas_svg
on the result. This combination made things quite slow -- it's probably my fault that both were in the code, sorry!The simulation is now very fast! You can get about 10 frames per second.
PS you might want to merge lecture23 -> master ?