Skip to content

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

Merged
lanzagar merged 1 commit intobiolab:masterfrom
jerneju:key-testlearners
Apr 7, 2017
Merged

[FIX] Test & Score: crashing prevented when learner disconnects#2194
lanzagar merged 1 commit intobiolab:masterfrom
jerneju:key-testlearners

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

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