/[gzz]/gzz/gfx/util/papersampler.py
ViewVC logotype

Diff of /gzz/gfx/util/papersampler.py

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

revision 1.17 by jvk, Tue Mar 4 13:13:00 2003 UTC revision 1.18 by jvk, Tue Mar 4 13:31:46 2003 UTC
# Line 159  def createTextPapers(): Line 159  def createTextPapers():
159          pageSpanCellView = gzz.view.PageSpanCellView()          pageSpanCellView = gzz.view.PageSpanCellView()
160          pageSpanCellView.pageSpanPaperMaker = PSPMaker()          pageSpanCellView.pageSpanPaperMaker = PSPMaker()
161    
162            f = open("tmp/trials%s_0.txt" % subj, "w")
163    
164          for trial in range(0, trials):          for trial in range(0, trials):
165              page = pages[pagenums[trial]]              page = pages[pagenums[trial]]
166              opts = conditions[trial]              opts = conditions[trial]
# Line 171  def createTextPapers(): Line 173  def createTextPapers():
173                  ThePaperMill(), opts["paperopts"])                  ThePaperMill(), opts["paperopts"])
174              gzz.gfx.gl.PageSpanPaper.paperMillWindow = w              gzz.gfx.gl.PageSpanPaper.paperMillWindow = w
175              layout = pageSpanCellView.getLayout(page)              layout = pageSpanCellView.getLayout(page)
176              doFrame(lambda vs: textPaperScene(vs, layout, zoom),              file = "tmp/tmp_%s_%s_%s"%(subj, trial, l)
177                      "tmp/tmp_%s_%s_%s"%(subj, trial, l))              doFrame(lambda vs: textPaperScene(vs, layout, zoom), file )
178                f.write(file + ".mipzip 500 2000 Control_R Control_L\n")
179                f.write("page=%s conds=%s\n" % (pagenums[trial], str(opts)))
180                f.flush()
181              l += 1              l += 1
182    
183            f.close()
184    
185    
186        
187  class Main(Runnable):  class Main(Runnable):

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26