Skip to content

Commit 2ef3352

Browse files
STY example
1 parent f03ab79 commit 2ef3352

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

examples/save_movie.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,13 @@
2020
config_opts=dict(width=800, height=400))
2121

2222
"""
23-
read MNE dSPM inverse solution
23+
read and display MNE dSPM inverse solution
2424
"""
25+
stc_fname = os.path.join('example_data', 'meg_source_estimate-%s.stc')
2526
for hemi in ['lh', 'rh']:
26-
stc_fname = os.path.join('example_data',
27-
'meg_source_estimate-' + hemi + '.stc')
28-
stc = read_stc(stc_fname)
27+
stc = read_stc(stc_fname % hemi)
2928
data = stc['data']
30-
31-
"""
32-
Calculate sample time points
33-
"""
3429
times = np.arange(data.shape[1]) * stc['tstep'] + stc['tmin']
35-
3630
brain.add_data(data, colormap='hot', vertices=stc['vertices'],
3731
smoothing_steps=10, time=times, time_label='%0.3f s',
3832
hemi=hemi)

0 commit comments

Comments
 (0)