/[ascend]/trunk/pygtk/diagnose.py
ViewVC logotype

Diff of /trunk/pygtk/diagnose.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 895 by johnpye, Tue Oct 24 00:12:34 2006 UTC revision 1109 by johnpye, Thu Jan 11 04:07:02 2007 UTC
# Line 223  class DiagnoseWindow: Line 223  class DiagnoseWindow:
223              else:              else:
224                  self.zoom = float(h) / self.nr                  self.zoom = float(h) / self.nr
225    
226          self.browser.reporter.reportNote("Diagnose window: preliminary calculated zoom = %f (nr = %d, nc = %d)" % (self.zoom, self.nr, self.nc))          #self.browser.reporter.reportNote("Diagnose window: preliminary calculated zoom = %f (nr = %d, nc = %d)" % (self.zoom, self.nr, self.nc))
227                    
228    
229          if self.zoom > MAX_ZOOM_RATIO:          if self.zoom > MAX_ZOOM_RATIO:
# Line 233  class DiagnoseWindow: Line 233  class DiagnoseWindow:
233              self.browser.reporter.reportNode("image is too big, reducing to MAX_ZOOM_SIZE = %f" % MAX_ZOOM_SIZE);              self.browser.reporter.reportNode("image is too big, reducing to MAX_ZOOM_SIZE = %f" % MAX_ZOOM_SIZE);
234              self.zoom = MAX_ZOOM_SIZE / max(self.nc,self.nr)              self.zoom = MAX_ZOOM_SIZE / max(self.nc,self.nr)
235    
236          self.browser.reporter.reportNote("Diagnose window: matrix zoom = %f" % self.zoom)          #self.browser.reporter.reportNote("Diagnose window: matrix zoom = %f" % self.zoom)
237          w = int(self.zoom * self.nc);          w = int(self.zoom * self.nc);
238          h = int(self.zoom * self.nr);          h = int(self.zoom * self.nr);
239                            

Legend:
Removed from v.895  
changed lines
  Added in v.1109

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22