diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-02-07 00:14:10 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-02-07 00:14:10 -0500 |
commit | 230eafed9aefda8688c8b9269e600b7289326a52 (patch) | |
tree | 035c5e44c2400e0d214293a7fba86eb086f2b059 /python/deathtable.py | |
parent | e3675ef3e0eda98482afc093b15fccb5b643a040 (diff) |
cleaned up python directory structure
Diffstat (limited to 'python/deathtable.py')
-rw-r--r-- | python/deathtable.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/deathtable.py b/python/deathtable.py new file mode 100644 index 0000000..f393cc8 --- /dev/null +++ b/python/deathtable.py @@ -0,0 +1,7 @@ +from data import trials + +print('\\table{') +print('Trial Size& Date& Introduced& Deaths& Pits formed\\cr\\noalign{\\hrule}') +for trial in trials: + print('& '.join(['$\\times$'.join([str(el) for el in trial.size]), str(trial.date), str(trial.intro), str(trial.dead), str(len(trial.pits))])+'\\cr\\noalign{\\hrule}') +print('}', end='') |