Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JakaKokosar committed Dec 8, 2023
1 parent 19087d2 commit a71c8ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.11]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
10 changes: 2 additions & 8 deletions orangecontrib/survival_analysis/widgets/owkaplanmeier.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,10 +617,7 @@ def set_data(self, data: Table):
self.graph.selection = {}
self.openContext(domain)

self.graph.curves = {
curve_id: curve
for curve_id, curve in enumerate(self.generate_plot_curves())
}
self.graph.curves = dict(enumerate(self.generate_plot_curves()))
self.graph.update_plot(**self._get_plot_options())

self.commit.now()
Expand All @@ -639,10 +636,7 @@ def on_group_changed(self):
if not self.data:
return

self.graph.curves = {
curve_id: curve
for curve_id, curve in enumerate(self.generate_plot_curves())
}
self.graph.curves = dict(enumerate(self.generate_plot_curves()))
self.graph.clear_selection()
self.graph.update_plot(**self._get_plot_options())
self.commit.now()
Expand Down

0 comments on commit a71c8ef

Please sign in to comment.