prjemian / assign_gup

Assist in assigning APS GUPs to PRP members
http://assign_gup.readthedocs.io
0 stars 1 forks source link

div by zero error #32

Closed prjemian closed 8 years ago

prjemian commented 8 years ago

with a new project (no proposals or reviewers or topics), this error:

pi@prjpi:~ $ Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Assign_GUP/main_window.py", line 598, in doSummaryReport
    self.summary_window = report_summary.Report(None, self.agup, self.settings)
  File "/usr/local/lib/python2.7/dist-packages/Assign_GUP/report_summary.py", line 49, in __init__
    text = self.makeText()
  File "/usr/local/lib/python2.7/dist-packages/Assign_GUP/report_summary.py", line 77, in makeText
    mean = float(len(self.agup.proposals)) / float(len(self.agup.reviewers))
ZeroDivisionError: float division by zero
prjemian commented 8 years ago

the error is from the summary report