Skip to content

Commit 58da814

Browse files
committed
2nd draft of MNE example, hot-fix
1 parent acd8459 commit 58da814

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

examples/plot_mne_example.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,17 @@
132132
# Creating dictionaries to store all the periodic properties across frequencies
133133
exponent_results = np.zeros(shape=[num_blocks, n_channels, len(aperiodic_feats)])
134134

135+
136+
###################################################################################################
137+
138+
# Populating periodic and aperiodic values
139+
for block in range(0, num_blocks):
140+
for ind, res in enumerate(fg):
141+
exponent_results[block, ind, :] = res.aperiodic_params
142+
for band_label, band_range in bands.items():
143+
results[band_label][block, ind, :] = get_band_peak(res.peak_params, band_range, True)
144+
145+
135146
###################################################################################################
136147
# Plotting topographies
137148
# ---------------------
@@ -189,7 +200,7 @@ def plot_topo_colorbar(vmin, vmax, label):
189200

190201
topo_dat = np.mean(cur_data,0)
191202

192-
print('CURRENT FEATURE:', exponent_feat[1])
203+
print('CURRENT FEATURE:', aperiodic_feats[1])
193204
disp_dat = topo_dat[:,1]
194205

195206
inds = np.where(np.isnan(disp_dat))

0 commit comments

Comments
 (0)