Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
OS: ${{ matrix.os }}
PYTHON: '3.9'
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@master
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Generate coverage report
Expand All @@ -23,7 +23,7 @@ jobs:
pip install -r requirements-test.txt
pytest --cov=./pyedflib/ --cov-report=xml --cov-config=.coveragerc
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
directory: .
env_vars: OS,PYTHON
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-2019, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install deps
run: python -m pip install build twine
- name: Build SDist
run: python -m build --sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
- name: Check metadata
Expand All @@ -42,10 +42,10 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install cibuildwheel
Expand All @@ -58,7 +58,7 @@ jobs:
CIBW_SKIP: pp*
CIBW_PRERELEASE_PYTHONS: False

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: wheelhouse/*.whl

Expand All @@ -67,16 +67,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [37, 38, 39, 310, 311]
python: [38, 39, 310, 311, 312, 313]
include:
- os: ubuntu-latest
arch: aarch64
platform_id: manylinux_aarch64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Install cibuildwheel
run: python -m pip install cibuildwheel
Expand All @@ -86,7 +86,7 @@ jobs:
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: wheelhouse/*.whl

Expand All @@ -95,7 +95,7 @@ jobs:
needs: [build_wheels, build_aarch64_wheels, make_sdist]
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down
16 changes: 8 additions & 8 deletions pyedflib/_extensions/_pyedflib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__doc__ = """Cython wrapper for low-level C edflib implementation."""
__all__ = ['lib_version', 'CyEdfReader', 'set_patientcode', 'set_starttime_subsecond',
'write_annotation_latin1', 'write_annotation_utf8', 'set_technician', 'EdfAnnotation',
'write_annotation_latin1_hr', 'write_annotation_utf8_hr', 'set_technician', 'EdfAnnotation',
'get_annotation', 'read_int_samples', 'blockwrite_digital_samples', 'blockwrite_physical_samples',
'set_recording_additional', 'write_physical_samples' ,'set_patientname', 'set_physical_minimum',
'read_physical_samples', 'close_file', 'set_physical_maximum', 'open_file_writeonly',
Expand Down Expand Up @@ -277,7 +277,7 @@ cdef class CyEdfReader:
property gender:
def __get__(self):
warnings.warn("Variable 'gender' is deprecated, use 'sex' instead.", DeprecationWarning, stacklevel=2)
return self.hdr.gender
return self.hdr.sex

property birthdate:
def __get__(self):
Expand Down Expand Up @@ -436,11 +436,11 @@ def set_patientcode(int handle, char *patientcode):
# check if rw?
return c_edf.edf_set_patientcode(handle, patientcode)

cpdef int write_annotation_latin1(int handle, long long onset, long long duration, char *description):
return c_edf.edfwrite_annotation_latin1(handle, onset, duration, description)
cpdef int write_annotation_latin1_hr(int handle, long long onset, long long duration, char *description):
return c_edf.edfwrite_annotation_latin1_hr(handle, onset, duration, description)

cpdef int write_annotation_utf8(int handle, long long onset, long long duration, char *description):
return c_edf.edfwrite_annotation_utf8(handle, onset, duration, description)
cpdef int write_annotation_utf8_hr(int handle, long long onset, long long duration, char *description):
return c_edf.edfwrite_annotation_utf8_hr(handle, onset, duration, description)

cpdef int set_technician(int handle, char *technician):
return c_edf.edf_set_technician(handle, technician)
Expand Down Expand Up @@ -598,11 +598,11 @@ def rewind(handle, edfsignal):
def set_sex(handle, sex):
"""int edf_set_sex(int handle, int sex)"""
if sex is None: return 0 #don't set sex at all to prevent default 'F'
return c_edf.edf_set_gender(handle, sex)
return c_edf.edf_set_sex(handle, sex)

def set_gender(handle, gender):
warnings.warn("Function 'set_gender' is deprecated, use 'set_sex' instead.", DeprecationWarning, stacklevel=2)
return set_sex(handle, gender)
return c_edf.edf_set_sex(handle, gender)

def set_physical_dimension(handle, edfsignal, phys_dim):
"""int edf_set_physical_dimension(int handle, int edfsignal, const char *phys_dim)"""
Expand Down
Loading