aboutsummaryrefslogtreecommitdiff
path: root/python/deathtable.py
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-02-07 00:14:10 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-02-07 00:14:10 -0500
commit230eafed9aefda8688c8b9269e600b7289326a52 (patch)
tree035c5e44c2400e0d214293a7fba86eb086f2b059 /python/deathtable.py
parente3675ef3e0eda98482afc093b15fccb5b643a040 (diff)
cleaned up python directory structure
Diffstat (limited to 'python/deathtable.py')
-rw-r--r--python/deathtable.py7
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='')