Skip to content

Commit

Permalink
misc maint
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Feb 2, 2023
1 parent 11b47b7 commit 9fc4ee8
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]

env:
TZ: Europe/Berlin
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -13,15 +13,15 @@ repos:
- id: check-case-conflict
- id: check-docstring-first
- repo: https://github.com/pycqa/isort
rev: "5.10.1"
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: "22.6.0"
rev: "23.1.0"
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: "4.0.1"
rev: "6.0.0"
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2018-2022, pybv developers
Copyright (c) 2018-2023, pybv developers
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ as hosted by Brain Products.
Installation
============

``pybv`` runs on Python version 3.7 or higher.
``pybv`` runs on Python version 3.8 or higher.

``pybv``'s only dependency is ``numpy``.
However, we currently recommend that you install MNE-Python for reading BrainVision data.
Expand Down
1 change: 0 additions & 1 deletion pybv/_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def _mne_annots2pybv_events(raw):
"""Convert mne Annotations to pybv events."""
events = []
for annot in raw.annotations:

# Handle onset and duration: seconds to sample,
# relative to raw.first_samp / raw.first_time
onset = annot["onset"] - raw.first_time
Expand Down
2 changes: 0 additions & 2 deletions pybv/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ def write_brainvision(

# Write output files, but delete everything if we come across an error
try:

_write_bveeg_file(
eeg_fname,
data,
Expand Down Expand Up @@ -635,7 +634,6 @@ def _write_vmrk_file(vmrk_fname, eeg_fname, events, meas_date):

iev = 1 if meas_date is None else 2
for ev in events:

# Write event once for each channel that this event is relevant for
# https://github.com/bids-standard/pybv/pull/77
for ch in ev["channels"]:
Expand Down
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ classifiers =
Operating System :: POSIX :: Linux
Operating System :: MacOS
Programming Language :: Python
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Expand All @@ -33,7 +32,7 @@ project_urls =
Source = https://github.com/bids-standard/pybv

[options]
python_requires = ~= 3.7
python_requires = ~= 3.8
install_requires =
numpy >= 1.18.1
packages = find:
Expand All @@ -49,7 +48,7 @@ exclude =

[options.extras_require]
export =
mne >= 0.20
mne >= 1.0

[bdist_wheel]
universal = true
Expand Down

0 comments on commit 9fc4ee8

Please sign in to comment.