On Wed, 5 Jan 2005, Kooser, Ara S wrote:

>    They picked a project to model the flow of smallpox in a city and
> surroundings areas. So I saw the game of life and thought maybe they
> could modify it for use as a smallpox model.


Hi Ara,


Oh!  My apologies for not posting the file as a complete example!  Here,
let me just link it so that you don't have to type it or cut-and-paste it
all out manually:

    http://hkn.eecs.berkeley.edu/~dyoo/python/life.py

Please note that I wrote that code in a hacking session, so it might not
make complete sense!  *grin* I would hate to inflict it on students
without having the code cleaned up a bit first.


I'm not sure how easily my Life example can be adopted to simulate disease
transmission.  Let me do some research... Ok, there's a paper on
epidemiology and cellular automata here:

    http://arxiv.org/abs/nlin.CG/0403035


Someone appears to have written a disease model in StarLogo here:

    http://biology.wsc.ma.edu/biology/courses/concepts/labs/epidemiology/

where they refer to a program called HBepidemic; it might be interesting
to see if we can get the source code to HBepidemic and translate it into
Python.



Whoa!  If you have Mathematica, take a look at:

    http://www.brynmawr.edu/Acads/Chem/Chem321mf/index521.html

Workshop 6 on that page appears to have a cellular automaton example that
models an epidemic, and sounds really interesting!  Their worksheet also
has the full Mathematica code needed to get the model working.  I'm a
Mathematica newbie, but if you want, I think I can figure out how their
code works.


Best of wishes to you!

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to