We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03ab79 commit 2ef3352Copy full SHA for 2ef3352
examples/save_movie.py
@@ -20,19 +20,13 @@
20
config_opts=dict(width=800, height=400))
21
22
"""
23
-read MNE dSPM inverse solution
+read and display MNE dSPM inverse solution
24
25
+stc_fname = os.path.join('example_data', 'meg_source_estimate-%s.stc')
26
for hemi in ['lh', 'rh']:
- stc_fname = os.path.join('example_data',
27
- 'meg_source_estimate-' + hemi + '.stc')
28
- stc = read_stc(stc_fname)
+ stc = read_stc(stc_fname % hemi)
29
data = stc['data']
30
-
31
- """
32
- Calculate sample time points
33
34
times = np.arange(data.shape[1]) * stc['tstep'] + stc['tmin']
35
36
brain.add_data(data, colormap='hot', vertices=stc['vertices'],
37
smoothing_steps=10, time=times, time_label='%0.3f s',
38
hemi=hemi)
0 commit comments