On Mon, 13 Feb 2006, Brian Smith wrote:
> File "/usr/local/ccpnmr1.0.9/ccpnmr1.0/python/memops/gui/ProgressBar.py",
> line 95, in update
> p = self.progress/self.total
> ZeroDivisionError: float division
A fix - dunno if it's Python-perfect - is to replace line 95 with:
if self.progress > 0:
p = self.progress/self.total
else:
p = 0
--
Dr. Brian O. Smith ---------------------- B Smith at bio gla ac uk
Division of Biochemistry & Molecular Biology,
Institute Biomedical & Life Sciences,
Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
Tel: 0141 330 5167/6459/3089 Fax: 0141 330 8640
|