[FIX] FreeViz: 2 issues when no data#2780
Merged
lanzagar merged 2 commits intobiolab:masterfrom Nov 27, 2017
jerneju:freeviz-fix-hideradius
Merged
[FIX] FreeViz: 2 issues when no data#2780lanzagar merged 2 commits intobiolab:masterfrom jerneju:freeviz-fix-hideradius
lanzagar merged 2 commits intobiolab:masterfrom
jerneju:freeviz-fix-hideradius
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2780 +/- ##
==========================================
+ Coverage 76.09% 76.09% +<.01%
==========================================
Files 338 338
Lines 59723 59735 +12
==========================================
+ Hits 45444 45455 +11
- Misses 14279 14280 +1 |
janezd
reviewed
Nov 17, 2017
| self._update_graph() | ||
|
|
||
| def _update_graph(self, reset_view=True, **_): | ||
| if self.graph.data is None: |
Contributor
There was a problem hiding this comment.
_update_graph is called from reset_graph_data and update_density. The former already checks that graph.data is not None. You could add this check to the latter as well instead of having it in _update_graph, and just move the assert in _update_graph to the top.
Contributor
|
Not in the scope of this PR (which fixes bugs and we want in the 3.8 release), but maybe for future refactoring
Back to the PR - the fixes work for me and look ok. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Widget crashes when there is no data and
Description of changes
Includes