From 02ae71cf9f51b19124fbced0dbe2780a95d605ff Mon Sep 17 00:00:00 2001 From: Eric Prestat Date: Thu, 11 Jul 2024 21:16:50 +0100 Subject: [PATCH] Ruff formatting --- 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..4dbf0bcc2 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 len(self._edge_markers["names"]) > 0: self._edge_markers["names"] = np.delete(self._edge_markers["names"], ind) if render_figure: