From 166c4c5efdf7c9f47b735b02077d1c785059b061 Mon Sep 17 00:00:00 2001 From: Miles Wells Date: Thu, 2 Nov 2023 14:24:13 +0200 Subject: [PATCH] bump ONE version --- ibllib/io/extractors/ephys_fpga.py | 5 ++--- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ibllib/io/extractors/ephys_fpga.py b/ibllib/io/extractors/ephys_fpga.py index ee647e193..b0298011f 100644 --- a/ibllib/io/extractors/ephys_fpga.py +++ b/ibllib/io/extractors/ephys_fpga.py @@ -113,13 +113,12 @@ def _sync_to_alf(raw_ephys_apfile, output_path=None, save=False, parts=''): else: raw_ephys_apfile = Path(raw_ephys_apfile) sr = spikeglx.Reader(raw_ephys_apfile) - opened = sr.is_open - if not opened: # if not (opened := sr.is_open) # py3.8 + if not (opened := sr.is_open): sr.open() # if no output, need a temp folder to swap for big files if not output_path: output_path = raw_ephys_apfile.parent - file_ftcp = Path(output_path).joinpath(f'fronts_times_channel_polarity{str(uuid.uuid4())}.bin') + file_ftcp = Path(output_path).joinpath(f'fronts_times_channel_polarity{uuid.uuid4()}.bin') # loop over chunks of the raw ephys file wg = neurodsp.utils.WindowGenerator(sr.ns, int(SYNC_BATCH_SIZE_SECS * sr.fs), overlap=1) diff --git a/requirements.txt b/requirements.txt index 43d0760de..242ac9a0b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -26,7 +26,7 @@ tqdm>=4.32.1 ibl-neuropixel>=0.8.1 iblutil>=1.7.0 labcams # widefield extractor -ONE-api>=2.4 +ONE-api>=2.5 slidingRP>=1.0.0 # steinmetz lab refractory period metrics wfield==0.3.7 # widefield extractor frozen for now (2023/07/15) until Joao fixes latest version psychofit