Commit 6bd7c07d authored by Christian Brodbeck's avatar Christian Brodbeck

API Brain.save_movie(): remove `col` and `row` parameters

parent 112aa872
......@@ -47,9 +47,8 @@ Save movies with different combinations of views. Use a large value for
time_dilation because the sample stc only covers 30 ms
brain.save_movie('', time_dilation=30)
brain.save_movie('', time_dilation=30, montage='single')
brain.save_movie('', time_dilation=30, montage=['lat', 'med'],
brain.save_movie('', time_dilation=30, montage='lat')
brain.save_movie('', time_dilation=30, montage=['lat', 'med'])
brain.save_movie('', time_dilation=30, montage=[['lat'], ['med']])
......@@ -2087,8 +2087,7 @@ class Brain(object):
def save_movie(self, fname, time_dilation=4., tmin=None, tmax=None,
montage='current', colorbar='auto', border_size=15,
framerate=25, interpolation='quadratic', codec='mpeg4',
row=-1, col=-1):
framerate=25, interpolation='quadratic', codec='mpeg4'):
"""Save a movie (for data with a time axis)
.. Warning::
......@@ -2108,10 +2107,9 @@ class Brain(object):
First time point to include (default: all data).
tmax : float
Last time point to include (default: all data).
montage: 'current' | 'single' | list
montage: 'current' | list
Views to include in the images: 'current' (default) uses the
currently displayed image; 'single' uses a single view, specified
by the ``row`` and ``col`` parameters; a 1 or 2 dimensional list
currently displayed image; a 1 or 2 dimensional list
can be used to specify a complete montage. Examples:
``['lat', 'med']`` lateral and ventral views ordered horizontally;
``[['fro'], ['ven']]`` frontal and ventral views ordered vertically.
......@@ -2128,10 +2126,6 @@ class Brain(object):
default 'quadratic').
codec : str
Codec to use (default 'mpeg4').
row : int
row index of the brain to use (default -1).
col : int
column index of the brain to use (default -1).
if not has_ffmpeg():
err = ("FFmpeg is needed for saving movies and was not found in "
......@@ -2170,7 +2164,7 @@ class Brain(object):
tempdir = mkdtemp()
frame_pattern = 'frame%%0%id.png' % (np.floor(np.log10(n_times)) + 1)
fname_pattern = os.path.join(tempdir, frame_pattern)
self.save_image_sequence(time_idx, fname_pattern, False, row, col,
self.save_image_sequence(time_idx, fname_pattern, False, -1, -1,
montage, border_size, colorbar, interpolation)
ffmpeg(fname, fname_pattern, framerate, codec)
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