From 69b277d10e0d691b09c3898472852f9ef60c2797 Mon Sep 17 00:00:00 2001 From: Michael Waskom Date: Tue, 15 Dec 2015 14:17:37 -0800 Subject: [PATCH] Briefly pause to let the display catch up --- scripts/surface_snapshots.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/surface_snapshots.py b/scripts/surface_snapshots.py index 0b68f29..a846a1e 100644 --- a/scripts/surface_snapshots.py +++ b/scripts/surface_snapshots.py @@ -4,6 +4,7 @@ import sys import argparse from textwrap import dedent +from time import sleep import numpy as np from scipy import stats @@ -108,6 +109,7 @@ def contrast_loop(subj, contrasts, stat_temp, mask_temp, png_temp, # Take screenshots for view in ["lat", "med", "ven"]: b.show_view(view, distance="auto") + sleep(.1) panels.append(crop(b.screenshot())) b.close()