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] |
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): |