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] Error message on tSNE with one variable #4364

Merged
merged 2 commits into from
Jan 24, 2020

Conversation

rokgomiscek
Copy link
Contributor

Issue

Fixes #4354

Description of changes

Changed trigger for Error to number of attributes.

Includes
  • Code changes
  • Tests
  • Documentation

self.assertTrue(self.widget.Error.not_enough_cols.is_shown())

# one attributes
self.data = Table.from_list(self.empty_domain, [[1, 'STG1'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rokgomiscek, pylint complains about self.data being defined outside constructor. This doesn't happen just in your code but throughout this function. Could you change this to a local variable in all places? I assume this doesn't need to be an attribute.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janezd, changed

@codecov
Copy link

codecov bot commented Jan 24, 2020

Codecov Report

Merging #4364 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #4364      +/-   ##
==========================================
+ Coverage   86.97%   86.98%   +<.01%     
==========================================
  Files         396      396              
  Lines       72144    72152       +8     
==========================================
+ Hits        62750    62758       +8     
  Misses       9394     9394

@janezd janezd merged commit 98fa03c into biolab:master Jan 24, 2020
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.

tSNE widget raises an error on data with only one variable
2 participants