Skip to content

Commit 3ab94dd

Browse files
committed
Merge branch 'main' into datajoint-spikeinterface
2 parents b510cb8 + 780352b commit 3ab94dd

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

element_array_ephys/ephys_acute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def auto_generate_entries(cls, session_key):
185185

186186
probe_dir = meta_filepath.parent
187187
try:
188-
probe_number = re.search("(imec)?\d{1}$", probe_dir.name).group()
188+
probe_number = re.search(r"(imec)?\d{1}$", probe_dir.name).group()
189189
probe_number = int(probe_number.replace("imec", ""))
190190
except AttributeError:
191191
probe_number = meta_fp_idx

element_array_ephys/ephys_no_curation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def auto_generate_entries(cls, session_key):
190190

191191
probe_dir = meta_filepath.parent
192192
try:
193-
probe_number = re.search("(imec)?\d{1}$", probe_dir.name).group()
193+
probe_number = re.search(r"(imec)?\d{1}$", probe_dir.name).group()
194194
probe_number = int(probe_number.replace("imec", ""))
195195
except AttributeError:
196196
probe_number = meta_fp_idx

element_array_ephys/readers/kilosort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,14 @@ def extract_clustering_info(cluster_output_dir):
204204
is_curated = bool(np.any(curation_row))
205205
if creation_time is None and is_curated:
206206
row_meta = phylog.meta[np.where(curation_row)[0].max()]
207-
datetime_str = re.search("\d{2}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}", row_meta)
207+
datetime_str = re.search(r"\d{2}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}", row_meta)
208208
if datetime_str:
209209
creation_time = datetime.strptime(
210210
datetime_str.group(), "%Y-%m-%d %H:%M:%S"
211211
)
212212
else:
213213
creation_time = datetime.fromtimestamp(phylog_filepath.stat().st_ctime)
214-
time_str = re.search("\d{2}:\d{2}:\d{2}", row_meta)
214+
time_str = re.search(r"\d{2}:\d{2}:\d{2}", row_meta)
215215
if time_str:
216216
creation_time = datetime.combine(
217217
creation_time.date(),

element_array_ephys/readers/kilosort_triggering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(
9898

9999
def parse_input_filename(self):
100100
meta_filename = next(self._npx_input_dir.glob("*.ap.meta")).name
101-
match = re.search("(.*)_g(\d)_t(\d+|cat)\.imec(\d?)\.ap\.meta", meta_filename)
101+
match = re.search(r"(.*)_g(\d)_t(\d+|cat)\.imec(\d?)\.ap\.meta", meta_filename)
102102
session_str, gate_str, trigger_str, probe_str = match.groups()
103103
return session_str, gate_str, trigger_str, probe_str or "0"
104104

@@ -719,7 +719,7 @@ def _get_median_subtraction_duration_from_log(self):
719719
) and previous_line.startswith("Total processing time:"):
720720
# regex to search for the processing duration - a float value
721721
duration = int(
722-
re.search("\d+\.?\d+", previous_line).group()
722+
re.search(r"\d+\.?\d+", previous_line).group()
723723
)
724724
return duration
725725
previous_line = line

element_array_ephys/readers/spikeglx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def __init__(self, meta_filepath):
266266
self.probe_PN = self.meta.get("imDatPrb_pn", "3A")
267267

268268
# Infer npx probe model (e.g. 1.0 (3A, 3B) or 2.0)
269-
probe_model = self.meta.get("imDatPrb_type", 1)
269+
probe_model = self.meta.get("imDatPrb_type", 0)
270270
if probe_model < 1:
271271
if "typeEnabled" in self.meta and self.probe_PN == "3A":
272272
self.probe_model = "neuropixels 1.0 - 3A"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"plotly",
3737
"seaborn",
3838
"spikeinterface @ git+https://github.com/SpikeInterface/spikeinterface.git",
39-
"scikit-image",
39+
"scikit-image>=0.20",
4040
"nbformat>=4.2.0",
4141
"pyopenephys>=1.1.6",
4242
"element-interface @ git+https://github.com/datajoint/element-interface.git",

0 commit comments

Comments
 (0)