Skip to content

Commit

Permalink
Briefly pause to let the display catch up
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Dec 15, 2015
1 parent d7b113a commit 69b277d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/surface_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys
import argparse
from textwrap import dedent
from time import sleep

import numpy as np
from scipy import stats
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 69b277d

Please sign in to comment.