Skip to content

Commit a975353

Browse files
committed
Merge remote-tracking branch 'upstream/main' into dev_new_main
2 parents 4971108 + 71d9a42 commit a975353

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

element_array_ephys/ephys.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/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/spike_sorting/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

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)