Skip to content

Commit

Permalink
update parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-samala committed May 4, 2012
1 parent 00f4a76 commit e09fe12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run_simulation.sh
Expand Up @@ -3,7 +3,7 @@
count=1
for p in `seq 0.01 .01 .4`; do
for t in `seq 1 1 10`; do
./runCmd -c "python sim.py 100000000 $p out/contact_dist.out citydata/states.p citydata/census.p out/trans_prob.csv out/city_list.p results/matrix$count-$t" -e err/out$count-$t.err --nowait
./runCmd -c "python sim.py 1000000 $p out/contact_dist.out citydata/states.p citydata/census.p out/trans_prob.csv out/city_list.p results/matrix$count-$t" -e err/out$count-$t.err --nowait
done
let count+=1
done
3 changes: 2 additions & 1 deletion sim.py
Expand Up @@ -88,8 +88,9 @@ def gen_latent(city, l):
return l

def init_city(city, l):
frac = .00001
frac = .0001
num = int(frac * population[city])
print num
for i in range(num):
l.update(gen_latent(city, l))

Expand Down

0 comments on commit e09fe12

Please sign in to comment.