From af4c6177acd6e5c142830295f70de5a56f552fd1 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Sun, 13 Oct 2024 15:30:57 -0400 Subject: [PATCH 1/3] python 3.13 --- .github/workflows/core-test.yml | 10 +++++++++- .github/workflows/io-test.yml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/core-test.yml b/.github/workflows/core-test.yml index 07ad95174..152a7fbe6 100644 --- a/.github/workflows/core-test.yml +++ b/.github/workflows/core-test.yml @@ -26,7 +26,7 @@ jobs: matrix: os: ["ubuntu-latest", "windows-latest"] # "macos-latest", - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] numpy-version: ['1.22.4', '1.23.5', '1.24.1', '1.25.1', '1.26.4'] exclude: - python-version: '3.12' @@ -37,6 +37,14 @@ jobs: numpy-version: '1.24.1' - python-version: '3.12' numpy-version: '1.25.1' + - python-version: '3.13' + numpy-version: '1.22.4' + - python-version: '3.13' + numpy-version: '1.23.5' + - python-version: '3.13' + numpy-version: '1.24.1' + - python-version: '3.13' + numpy-version: '1.25.1' steps: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 diff --git a/.github/workflows/io-test.yml b/.github/workflows/io-test.yml index 8522e7e4e..1abe61959 100644 --- a/.github/workflows/io-test.yml +++ b/.github/workflows/io-test.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ['3.9', '3.11'] + python-version: ['3.9', '3.13'] defaults: # by default run in bash mode (required for conda usage) run: From ef2a3a19c0cb6391f2828de232e8a6e28bd70fb6 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Sun, 13 Oct 2024 15:40:41 -0400 Subject: [PATCH 2/3] increase plexon reading attempts --- neo/rawio/plexon2rawio/plexon2rawio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/rawio/plexon2rawio/plexon2rawio.py b/neo/rawio/plexon2rawio/plexon2rawio.py index 58995f5ea..e5513e5b1 100644 --- a/neo/rawio/plexon2rawio/plexon2rawio.py +++ b/neo/rawio/plexon2rawio/plexon2rawio.py @@ -54,7 +54,7 @@ class Plexon2RawIO(BaseRawIO): pl2_dll_file_path: str | Path | None, default: None The path to the necessary dll for loading pl2 files If None will find correct dll for architecture and if it does not exist will download it - reading_attempts: int, default: 25 + reading_attempts: int, default: 35 Number of attempts to read the file before raising an error This opening process is somewhat unreliable and might fail occasionally. Adjust this higher if you encounter problems in opening the file. @@ -93,7 +93,7 @@ class Plexon2RawIO(BaseRawIO): extensions = ["pl2"] rawmode = "one-file" - def __init__(self, filename, pl2_dll_file_path=None, reading_attempts=25): + def __init__(self, filename, pl2_dll_file_path=None, reading_attempts=35): # signals, event and spiking data will be cached # cached signal data can be cleared using `clear_analogsignal_cache()()` From 38f2256cf3e3c7c6af9c3909f5b0a2519c4b9388 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Sun, 13 Oct 2024 16:06:54 -0400 Subject: [PATCH 3/3] update actions --- .github/workflows/core-test.yml | 4 ++-- .github/workflows/io-test.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/core-test.yml b/.github/workflows/core-test.yml index 152a7fbe6..aae0fde07 100644 --- a/.github/workflows/core-test.yml +++ b/.github/workflows/core-test.yml @@ -47,12 +47,12 @@ jobs: numpy-version: '1.25.1' steps: - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install numpy ${{ matrix.numpy-version }} run: | diff --git a/.github/workflows/io-test.yml b/.github/workflows/io-test.yml index 1abe61959..2900c99b9 100644 --- a/.github/workflows/io-test.yml +++ b/.github/workflows/io-test.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get current year-month id: date @@ -38,7 +38,7 @@ jobs: run: | echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT - - uses: actions/cache/restore@v3 + - uses: actions/cache/restore@v4 # Loading cache of ephys_testing_dataset id: cache-datasets with: @@ -56,7 +56,7 @@ jobs: run: | echo "hash=${{hashFiles('**/pyproject.toml', '**/environment_testing.yml')}}" >> $GITHUB_OUTPUT - - uses: actions/cache/restore@v3 + - uses: actions/cache/restore@v4 # the cache for python package is reset: # * every month # * when package dependencies change