Skip to content

Commit fbf83de

Browse files
committed
Merge remote-tracking branch 'upstream/main' into update-docs
2 parents efb91b8 + 1d4f888 commit fbf83de

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
44
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
55

6+
## [0.4.2] - 2025-03-25
7+
8+
+ Fix - Add key_source to `ProbeLevelReport` to filter for 'good' quality units
9+
610
## [0.4.1] - 2025-02-13
711

812
+ Fix - Auto generate ProbeInsertion allows duplicate probes (e.g. probe reuse)

element_array_ephys/ephys_report.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ class ProbeLevelReport(dj.Computed):
5050
---
5151
drift_map_plot: attach
5252
"""
53+
54+
@property
55+
def key_source(self):
56+
return ephys.CuratedClustering & (
57+
ephys.CuratedClustering.Unit & "cluster_quality_label='good'"
58+
)
5359

5460
def make(self, key):
5561
from .plotting.probe_level import plot_driftmap

element_array_ephys/spike_sorting/si_spike_sorting.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def make(self, key):
275275

276276
postprocessing_params = params["SI_POSTPROCESSING_PARAMS"]
277277

278-
job_kwargs = postprocessing_params.get(
278+
job_kwargs = postprocessing_params.pop(
279279
"job_kwargs", {"n_jobs": -1, "chunk_duration": "1s"}
280280
)
281281

@@ -366,7 +366,7 @@ def make(self, key):
366366

367367
postprocessing_params = params["SI_POSTPROCESSING_PARAMS"]
368368

369-
job_kwargs = postprocessing_params.get(
369+
job_kwargs = postprocessing_params.pop(
370370
"job_kwargs", {"n_jobs": -1, "chunk_duration": "1s"}
371371
)
372372

@@ -383,6 +383,8 @@ def _export_to_phy():
383383
sorting_analyzer=sorting_analyzer,
384384
output_folder=analyzer_output_dir / "phy",
385385
use_relative_path=True,
386+
remove_if_exists=True,
387+
copy_binary=True,
386388
**job_kwargs,
387389
)
388390

@@ -395,6 +397,7 @@ def _export_report():
395397
si.exporters.export_report(
396398
sorting_analyzer=sorting_analyzer,
397399
output_folder=analyzer_output_dir / "spikeinterface_report",
400+
remove_if_exists=True,
398401
**job_kwargs,
399402
)
400403

element_array_ephys/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Package metadata."""
22

3-
__version__ = "0.4.1"
3+
__version__ = "0.4.2"

0 commit comments

Comments
 (0)