Skip to content

Commit

Permalink
Cosmetic and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Mar 3, 2025
1 parent b913be2 commit b72ee86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/spikeinterface/core/sortinganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,10 @@ def merge_units(

if len(merge_unit_groups) == 0:
# TODO I think we should raise an error or at least make a copy and not return itself
return self
if return_new_unit_ids:
return self, []
else:
return self

for units in merge_unit_groups:
# TODO more checks like one units is only in one group
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/widgets/crosscorrelograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def plot_matplotlib(self, data_plot, **backend_kwargs):

if i < len(self.axes) - 1:
self.axes[i, j].set_xticks([], [])
plt.tight_layout()
self.figure.tight_layout()

for i, unit_id in enumerate(unit_ids):
self.axes[0, i].set_title(str(unit_id))
Expand Down

0 comments on commit b72ee86

Please sign in to comment.