Skip to content

Commit

Permalink
FIX: Path [circle front]
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Nov 10, 2020
1 parent 2bc392e commit 3a77997
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/conf.py
Expand Up @@ -117,6 +117,7 @@
("py:class", "None. Update D from dict/iterable E and F."),
("py:class", "an object providing a view on D's values"),
("py:class", "a shallow copy of D"),
("py:class", "(k, v), remove and return some (key, value) pair as a"),
]
for key in ('AcqParserFIF', 'BiHemiLabel', 'Dipole', 'DipoleFixed', 'Label',
'MixedSourceEstimate', 'MixedVectorSourceEstimate', 'Report',
Expand Down
6 changes: 5 additions & 1 deletion mne/viz/_brain/_scraper.py
@@ -1,3 +1,5 @@
import os
import os.path as op
from distutils.version import LooseVersion

from ._brain import Brain
Expand Down Expand Up @@ -79,7 +81,9 @@ def func(frame):
static_fname = next(block_vars['image_path_iterator'])
static_fname = static_fname[:-4] + '.gif'
anim.save(static_fname, writer=writer, dpi=dpi)
rst += f'\n.. image:: /{static_fname}\n :class: hidden\n'
rel_fname = op.relpath(static_fname, gallery_conf['src_dir'])
rel_fname = rel_fname.replace(os.sep, '/').lstrip('/')
rst += f'\n.. image:: /{rel_fname}\n :class: hidden\n'

# 2. An animation that will be embedded and visible
block_vars['example_globals']['_brain_anim_'] = anim
Expand Down

0 comments on commit 3a77997

Please sign in to comment.