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

Diff of /trunk/pygtk/observer.py

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

revision 2494 by aakash, Tue Aug 16 11:14:13 2011 UTC revision 2495 by aakash, Tue Aug 16 11:35:08 2011 UTC
# Line 256  class ObserverTab: Line 256  class ObserverTab:
256          if y.__class__ is int and y>=0 and y<len(self.cols):          if y.__class__ is int and y>=0 and y<len(self.cols):
257              y=self.cols[y]              y=self.cols[y]
258          if y2.__class__ is int and y2>=0 and y2<len(self.cols):          if y2.__class__ is int and y2>=0 and y2<len(self.cols):
259              y2=self.cols[y2]                          y2=self.cols[y2]
260    
261          ncols = 2          ncols = 2
262          start = None          start = None
# Line 306  class ObserverTab: Line 306  class ObserverTab:
306                           continue                           continue
307              if start == None:              if start == None:
308                  self.browser.reporter.reportError("Can't plot, could not get enough points.")                  self.browser.reporter.reportError("Can't plot, could not get enough points.")
309                  return                            return
310              A = pylab.zeros((j,ncols),'f')              A = pylab.zeros((j,ncols),'f')
311              while start<len(self.rows)-1:              while start<len(self.rows)-1:
312                  if self.rows[start].tainted is True:                  if self.rows[start].tainted is True:
313                        start+=1
314                      continue                      continue
315                  r = self.rows[start].get_values(self)                  r = self.rows[start].get_values(self)
316                  A[k,0]=r[x.index]                  A[k,0]=r[x.index]

Legend:
Removed from v.2494  
changed lines
  Added in v.2495

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