Skip to content

Commit

Permalink
Do not save/overwrite params in read-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Sep 25, 2023
1 parent 3e7c16c commit 00f91eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spikeinterface/core/waveform_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,9 @@ def set_params(self, **params):
params = self._set_params(**params)
self._params = params

if self.waveform_extractor.is_read_only():
return

params_to_save = params.copy()
if "sparsity" in params and params["sparsity"] is not None:
assert isinstance(
Expand Down

0 comments on commit 00f91eb

Please sign in to comment.