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] Test & Score: crashing prevented when learner disconnects #2194

Merged
merged 1 commit into from
Apr 7, 2017
Merged

[FIX] Test & Score: crashing prevented when learner disconnects #2194

merged 1 commit into from
Apr 7, 2017

Conversation

jerneju
Copy link
Contributor

@jerneju jerneju commented Apr 5, 2017

Issue

When Test & Score performs evaluation sb might disconnect connection from some learner. Widget then crashes.
https://sentry.io/biolab/orange3/issues/227231658/

Description of changes
Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link

codecov-io commented Apr 5, 2017

Codecov Report

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

@@            Coverage Diff             @@
##           master    #2194      +/-   ##
==========================================
+ Coverage   72.02%   72.02%   +<.01%     
==========================================
  Files         318      318              
  Lines       54580    54583       +3     
==========================================
+ Hits        39309    39312       +3     
  Misses      15271    15271

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0858e4a...5f2d031. Read the comment docs.

@jerneju
Copy link
Contributor Author

jerneju commented Apr 5, 2017

@@ -381,6 +381,29 @@ def shuffle_split_changed(self):
def _param_changed(self):
self._invalidate()

def push_results(self, learners, results, class_var):
Copy link
Member

Choose a reason for hiding this comment

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

I would put this method below _update_results and pick another name. A docstring might be a good idea as well, as it is not that obvious what the method does.

@astaric astaric added this to the 3.4.2 milestone Apr 7, 2017
def fill_results(self, learners, results, class_var):
"""
Called by _update_results. This method prepares calculated results and
put them into self.learners.
Copy link
Contributor

Choose a reason for hiding this comment

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

puts

When Test & Score performs evaluation sb might disconnect
connection from some learner.
https://sentry.io/biolab/orange3/issues/227231658/
@lanzagar lanzagar merged commit d514b5b into biolab:master Apr 7, 2017
@jerneju jerneju deleted the key-testlearners branch April 21, 2017 14:21
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.

4 participants