diff options
Diffstat (limited to 'py/deathtable.py')
-rw-r--r-- | py/deathtable.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/py/deathtable.py b/py/deathtable.py new file mode 100644 index 0000000..f393cc8 --- /dev/null +++ b/py/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='') |