From 42e3ca94107b6353ff19cec3a395f3e63c343994 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:54:52 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- exspy/signals/eels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exspy/signals/eels.py b/exspy/signals/eels.py index b711df9cf..ebb9e7ee7 100644 --- a/exspy/signals/eels.py +++ b/exspy/signals/eels.py @@ -1849,7 +1849,7 @@ def _remove_edge_labels(self, edge_names=None, render_figure=True): self._edge_markers["lines"].remove_items(ind) if self._edge_markers["texts"] is not None: self._edge_markers["texts"].remove_items(ind) - if self._edge_markers["names"] is not []: + if self._edge_markers["names"] != []: self._edge_markers["names"] = np.delete(self._edge_markers["names"], ind) if render_figure: