Commit 41662010 authored by Christian Brodbeck's avatar Christian Brodbeck

DOC

parent 44788f70
......@@ -37,6 +37,8 @@ def test_offscreen():
"""
mlab.options.backend = 'auto'
brain = Brain(*std_args, offscreen=True)
# Sometimes the first screenshot is rendered with a different
# resolution on OS X
_ = brain.screenshot()
shot = brain.screenshot()
assert_array_equal(shot.shape, (800, 800, 3))
......
......@@ -2251,7 +2251,7 @@ class Brain(object):
logger.debug("Save movie for time points/samples\n%s\n%s"
% (times, time_idx))
# Sometimes the first screenshot is rendered with a different
# resolution
# resolution on OS X
_ = self.screenshot()
images = (self.screenshot() for _ in
self._iter_time(time_idx, interpolation))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment