Skip to content

Commit

Permalink
Merge pull request #3407 from alejoe91/fix-run-info-backcompatibility
Browse files Browse the repository at this point in the history
Check run info completed only if it exists (back-compatibility)
  • Loading branch information
alejoe91 authored Sep 15, 2024
2 parents 082bb39 + 3a13efe commit 667e4bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/spikeinterface/core/sortinganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2240,9 +2240,10 @@ def get_pipeline_nodes(self):
return self._get_pipeline_nodes()

def get_data(self, *args, **kwargs):
assert self.run_info[
"run_completed"
], f"You must run the extension {self.extension_name} before retrieving data"
if self.run_info is not None:
assert self.run_info[
"run_completed"
], f"You must run the extension {self.extension_name} before retrieving data"
assert len(self.data) > 0, "Extension has been run but no data found."
return self._get_data(*args, **kwargs)

Expand Down

0 comments on commit 667e4bd

Please sign in to comment.