Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] owpca: fix component selection when dragging selection line #5469

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

JakaKokosar
Copy link
Member

Issue

Fixes #5464

Description of changes

Check for self._pca is not None and components == len(self._variance_ratio) prevented self.ncomponents to get updated when dragging vertical line.

I think this check is unnecessary since the vertical line is bounded (on the x-axis) and will never exceed the number of computed components.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Jun 4, 2021

Codecov Report

Merging #5469 (4b2095d) into master (9651f85) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5469      +/-   ##
==========================================
- Coverage   86.36%   86.35%   -0.01%     
==========================================
  Files         304      304              
  Lines       61652    61652              
==========================================
- Hits        53244    53240       -4     
- Misses       8408     8412       +4     

@JakaKokosar JakaKokosar requested a review from janezd June 4, 2021 12:07
@janezd janezd merged commit a78eaf3 into biolab:master Jun 4, 2021
@JakaKokosar JakaKokosar deleted the fix_pca_selection branch April 1, 2022 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PCA widget not adding the last component
2 participants