|
[Rivet-svn] r2517 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Jun 23 14:29:56 BST 2010
Author: hoeth Date: Wed Jun 23 14:30:14 2010 New Revision: 2517 Log: fix math domain error if all histogram entries are 0 and LogY=1 Modified: trunk/bin/make-plots Modified: trunk/bin/make-plots ============================================================================== --- trunk/bin/make-plots Wed Jun 23 14:27:46 2010 (r2516) +++ trunk/bin/make-plots Wed Jun 23 14:30:14 2010 (r2517) @@ -273,6 +273,8 @@ if inputdata.description['LogY']: foo=[item for item in foo if item>0.0] if len(foo)==0: + if self.ymax==0: + self.ymax=1 foo.append(2e-4*self.ymax) fullrange = opts.FULL_RANGE if inputdata.description.has_key('FullRange'): @@ -1741,11 +1743,11 @@ ## Try to rename the process on Linux try: - import ctypes - libc = ctypes.cdll.LoadLibrary('libc.so.6') - libc.prctl(15, 'make-plots', 0, 0, 0) + import ctypes + libc = ctypes.cdll.LoadLibrary('libc.so.6') + libc.prctl(15, 'make-plots', 0, 0, 0) except Exception: - pass + pass ## Try to use Psyco optimiser try:
More information about the Rivet-svn mailing list |