Skip to content

Commit a079c22

Browse files
committed
STY: Fix for flake
1 parent 7a5bf71 commit a079c22

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

examples/plot_meg_inverse_solution.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
"""
2525
brain = Brain(subject_id, hemi, surface, size=(800, 400))
2626

27+
"""
28+
label for time annotation in milliseconds
29+
"""
30+
31+
32+
def time_label(t):
33+
return 'time=%0.2f ms' % (t * 1e3)
34+
2735
"""
2836
read MNE dSPM inverse solution
2937
"""
@@ -49,11 +57,6 @@
4957
"""
5058
colormap = 'hot'
5159

52-
"""
53-
label for time annotation in milliseconds
54-
"""
55-
time_label = lambda t: 'time=%0.2f ms' % (t * 1e3)
56-
5760
brain.add_data(data, colormap=colormap, vertices=vertices,
5861
smoothing_steps=10, time=time, time_label=time_label,
5962
hemi=hemi)

0 commit comments

Comments
 (0)