Skip to content

Commit c4e8b39

Browse files
DOC: move grouped OPM demo to kernel_phantom example
1 parent da17857 commit c4e8b39

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

examples/datasets/kernel_phantom.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@
5151
t_peak = 0.016 # based on visual inspection of evoked
5252
fig.axes[0].axvline(t_peak, color="k", ls=":", lw=3, zorder=2)
5353

54+
# %%
55+
# Demonstrating grouped OPM topomaps
56+
# The Kernel OPM phantom data is triaxial, so we can demonstrate the grouped
57+
# radial and tangential topomap rendering:
58+
59+
fig = evoked.plot_topomap(times=[t_peak], ch_type="mag", merge_channels=True)
60+
fig = evoked.plot_joint(times=[t_peak], picks="mag")
61+
5462
# %%
5563
# The data covariance has an interesting structure because of densely packed sensors:
5664

tutorials/preprocessing/80_opm_processing.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,6 @@
243243
)
244244
evoked = epochs.average()
245245
t_peak = evoked.times[np.argmax(np.std(evoked.copy().pick("meg").data, axis=0))]
246-
fig = evoked.plot_joint(picks="mag")
247-
248-
# %%
249-
# Demonstrating grouped OPM topomaps
250-
# ----------------------------------
251-
# The UCL OPM auditory dataset has already been loaded above, so this extra
252-
# figure reuses the same real evoked object without any additional downloads.
253-
fig = evoked.plot_topomap(times=[t_peak], ch_type="mag")
254246

255247
# %%
256248
# Visualizing coregistration

0 commit comments

Comments
 (0)