Skip to content

Commit

Permalink
Fix codecov tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Apr 29, 2024
1 parent e0a47a2 commit bbe0c23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/spikeinterface/core/analyzer_extension_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ class ComputeTemplates(AnalyzerExtension):
use_nodepipeline = False
need_job_kwargs = True

def _set_params(self, ms_before: float = 1.0, ms_after: float = 2.0, operators=["average", "std"]):
def _set_params(self, ms_before: float = 1.0, ms_after: float = 2.0, operators=None):
if operators is None:
operators = ["average", "std"]
assert isinstance(operators, list)
for operator in operators:
if isinstance(operator, str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
from spikeinterface.sortingcomponents.peak_detection import detect_peaks


@pytest.fixture(scope="package")
@pytest.fixture(scope="module")
def chunk_executor_kwargs():
job_kwargs = dict(n_jobs=-1, chunk_size=10000, progress_bar=False)
return job_kwargs


@pytest.fixture(scope="package")
@pytest.fixture(scope="module")
def generated_recording():
recording, sorting = generate_ground_truth_recording(
durations=[10.0],
Expand All @@ -24,7 +24,7 @@ def generated_recording():
return recording


@pytest.fixture(scope="package")
@pytest.fixture(scope="module")
def detected_peaks(generated_recording, chunk_executor_kwargs):
recording = generated_recording
peaks = detect_peaks(recording=recording, **chunk_executor_kwargs)
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/widgets/unit_waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(
set_title=True,
same_axis=False,
shade_templates=True,
templates_percentile_shading=[1, 25, 75, 98],
templates_percentile_shading=[1, 25, 75, 99],
x_offset_units=False,
alpha_waveforms=0.5,
alpha_templates=1,
Expand Down

0 comments on commit bbe0c23

Please sign in to comment.