Skip to content

Commit

Permalink
Use get to test the key (mne-tools#8049)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFavelier authored Jul 23, 2020
1 parent 6e5beb6 commit 0681845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/viz/_brain/_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ def set_time_point(self, time_idx):
time_actor.SetInput(time_label(self._current_time))

# interpolate in space
smooth_mat = hemi_data['smooth_mat']
smooth_mat = hemi_data.get('smooth_mat')
if smooth_mat is not None:
act_data = smooth_mat.dot(act_data)

Expand Down

0 comments on commit 0681845

Please sign in to comment.