gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/util papersampler.py


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gfx/util papersampler.py
Date: Tue, 04 Mar 2003 08:31:46 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        03/03/04 08:31:46

Modified files:
        gfx/util       : papersampler.py 

Log message:
        create trials file in tmp/

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/util/papersampler.py.diff?tr1=1.17&tr2=1.18&r1=text&r2=text

Patches:
Index: gzz/gfx/util/papersampler.py
diff -u gzz/gfx/util/papersampler.py:1.17 gzz/gfx/util/papersampler.py:1.18
--- gzz/gfx/util/papersampler.py:1.17   Tue Mar  4 08:13:00 2003
+++ gzz/gfx/util/papersampler.py        Tue Mar  4 08:31:46 2003
@@ -159,6 +159,8 @@
        pageSpanCellView = gzz.view.PageSpanCellView()
        pageSpanCellView.pageSpanPaperMaker = PSPMaker()
 
+        f = open("tmp/trials%s_0.txt" % subj, "w")
+
        for trial in range(0, trials):
            page = pages[pagenums[trial]]
             opts = conditions[trial]
@@ -171,9 +173,14 @@
                 ThePaperMill(), opts["paperopts"])
             gzz.gfx.gl.PageSpanPaper.paperMillWindow = w
             layout = pageSpanCellView.getLayout(page)
-            doFrame(lambda vs: textPaperScene(vs, layout, zoom),
-                   "tmp/tmp_%s_%s_%s"%(subj, trial, l))
+            file = "tmp/tmp_%s_%s_%s"%(subj, trial, l)
+            doFrame(lambda vs: textPaperScene(vs, layout, zoom), file )
+            f.write(file + ".mipzip 500 2000 Control_R Control_L\n")
+            f.write("page=%s conds=%s\n" % (pagenums[trial], str(opts)))
+            f.flush()
             l += 1
+
+        f.close()
 
 
   




reply via email to

[Prev in Thread] Current Thread [Next in Thread]