Skip to content

Commit

Permalink
2nd draft of MNE example, hot-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LuyandaMdanda committed Apr 19, 2019
1 parent acd8459 commit 58da814
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion examples/plot_mne_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,17 @@
# Creating dictionaries to store all the periodic properties across frequencies
exponent_results = np.zeros(shape=[num_blocks, n_channels, len(aperiodic_feats)])


###################################################################################################

# Populating periodic and aperiodic values
for block in range(0, num_blocks):
for ind, res in enumerate(fg):
exponent_results[block, ind, :] = res.aperiodic_params
for band_label, band_range in bands.items():
results[band_label][block, ind, :] = get_band_peak(res.peak_params, band_range, True)


###################################################################################################
# Plotting topographies
# ---------------------
Expand Down Expand Up @@ -189,7 +200,7 @@ def plot_topo_colorbar(vmin, vmax, label):

topo_dat = np.mean(cur_data,0)

print('CURRENT FEATURE:', exponent_feat[1])
print('CURRENT FEATURE:', aperiodic_feats[1])
disp_dat = topo_dat[:,1]

inds = np.where(np.isnan(disp_dat))
Expand Down

0 comments on commit 58da814

Please sign in to comment.