Skip to content

Commit a78eaf3

Browse files
authored
Merge pull request #5469 from JakaKokosar/fix_pca_selection
[FIX] owpca: fix component selection when dragging selection line
2 parents 9651f85 + 4b2095d commit a78eaf3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Orange/widgets/unsupervised/owpca.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@ def _setup_plot(self):
203203

204204
def _on_cut_changed(self, components):
205205
if components == self.ncomponents \
206-
or self.ncomponents == 0 \
207-
or self._pca is not None \
208-
and components == len(self._variance_ratio):
206+
or self.ncomponents == 0:
209207
return
210208

211209
self.ncomponents = components

0 commit comments

Comments
 (0)