diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ace460..65f2296 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,5 @@ +# Documentation +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: - package-ecosystem: "github-actions" diff --git a/.gitignore b/.gitignore index e9c0566..b85e76b 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,6 @@ htmlcov/ .venv .idea .ruff_cache +*.vmrk +*.eeg +*.vhdr diff --git a/docs/conf.py b/docs/conf.py index 79ae4bc..81be0f1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,8 +12,9 @@ import pybv curdir = Path(__file__).parent -sys.path.append((curdir / ".." / "pybv").resolve()) -sys.path.append((curdir / ".." / "sphinxext").resolve()) + +sys.path.append((curdir.parent / "pybv").resolve().as_posix()) +sys.path.append((curdir / "sphinxext").resolve().as_posix()) # see: https://sphinx.readthedocs.io/en/1.3/extensions.html extensions = [ diff --git a/pybv/io.py b/pybv/io.py index d7a5295..800bb59 100644 --- a/pybv/io.py +++ b/pybv/io.py @@ -606,7 +606,7 @@ def _write_vmrk_file(vmrk_fname, eeg_fname, events, meas_date): print("", file=fout) print("[Common Infos]", file=fout) print("Codepage=UTF-8", file=fout) - print(f"DataFile={eeg_fname.split(os.sep)[-1]}", file=fout) + print(f"DataFile={eeg_fname.name}", file=fout) print("", file=fout) print("[Marker Infos]", file=fout) print(