8000 GitHub - 1orwell/yrs2013: Ed, Nour, Sam, Tim, Tom and Elise yrs project on spread of disease in an American high school
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1orwell/yrs2013

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yrs2013

Ed, Nour, Sam, Tim, Tom and Elise yrs project on spread of disease in an American high school

Requirements

Python 2.7

Modules -igraph, pygame Installation - Debian

sudo add-apt-repository ppa:igraph/ppa && sudo apt-get update
sudo apt-get install python-igraph
sudo apt-get install python-pygame

Usage

For simulation of the existing data

  1. Run fake.py which will generate the graph and movement of all the people - will output dump.dat which is the pickled graph and a file in days which is the movement information. (This may take a while)

  2. Run simulation.py which will simulate a day at the school using the files generated by fake.py - will output virus.dat which contains the movements needed at each tick

  3. Run display.py to display the simulation

python fake.py && python simulation.py && python display.py

About

Ed, Nour, Sam, Tim, Tom and Elise yrs project on spread of disease in an American high school

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0