aboutsummaryrefslogtreecommitdiff
path: root/py/deathtable.py
blob: f393cc83f4b75ca8605ba84240a29c4deb4d87f7 (plain)
1
2
3
4
5
6
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='')