Skip to content

Commit

Permalink
Fixed little bug in export_to_sigui
Browse files Browse the repository at this point in the history
Fixed a bug where params `{}` would not run the PCA or spike amplitudes.
  • Loading branch information
DradeAW committed Jan 16, 2024
1 parent 454b384 commit 6d46f05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lussac/modules/export_to_sigui.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def run(self, params: dict[str, Any]) -> si.BaseSorting:
path = self._format_output_path(params['path'])
wvf_extractor = si.extract_waveforms(self.recording, self.sorting, path, **params['wvf_extraction'])

if params['spike_amplitudes']:
if isinstance(params['spike_amplitudes'], dict):
spost.compute_spike_amplitudes(wvf_extractor, **params['spike_amplitudes'])
if params['principal_components']:
if isinstance(params['principal_components'], dict):
spost.compute_principal_components(wvf_extractor, **params['principal_components'])

return self.sorting
Expand Down
2 changes: 2 additions & 0 deletions src/lussac/modules/merge_sortings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class MergeSortings(MultiSortingsModule):
Merges the sortings into a single one.
"""

aggregated_wvf_extractor: si.WaveformExtractor # Waveform extractor for all analyses.

@property
@override
def default_params(self) -> dict[str, Any]:
Expand Down

0 comments on commit 6d46f05

Please sign in to comment.