From eccecda4c5d18aae81827ad99a15a3b4008d5a61 Mon Sep 17 00:00:00 2001 From: Dmitri Gavrilov Date: Tue, 6 Aug 2024 13:19:21 -0400 Subject: [PATCH 1/2] Fix removed ArtistList.remove method --- pyxrf/model/lineplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyxrf/model/lineplot.py b/pyxrf/model/lineplot.py index 25ff7748..53a8770c 100644 --- a/pyxrf/model/lineplot.py +++ b/pyxrf/model/lineplot.py @@ -637,7 +637,8 @@ def plot_vertical_marker(self, *, e_low=None, e_high=None): y_v = (-1e30, 1e30) # This will cover the range of possible values of accumulated counts if self.line_vertical_marker: - self._ax.lines.remove(self.line_vertical_marker) + self.line_vertical_marker.remove() + # self._ax.lines.remove(self.line_vertical_marker) self.line_vertical_marker = None if self.vertical_marker_is_visible: (self.line_vertical_marker,) = self._ax.plot(x_v, y_v, color="blue") From e117ee05c51dc70a3356bf2e3ad0e5feddfea581 Mon Sep 17 00:00:00 2001 From: Dmitri Gavrilov Date: Tue, 6 Aug 2024 13:21:59 -0400 Subject: [PATCH 2/2] CI: exclude Python 3.9 from test matrix --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index aaf81c48..7256dbfa 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: host-os: ["ubuntu-latest", "macos-latest", "windows-latest"] - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11"] numpy-version: ["1.26"] pyqt-version: ["5.15"] include: