Skip to content

Commit

Permalink
Merge pull request #65 from hyperspy/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
ericpre authored Jul 11, 2024
2 parents 04572ec + 02ae71c commit 375eb27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.10
rev: v0.5.1
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion exspy/signals/eels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 375eb27

Please sign in to comment.