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] 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()()`