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

Network Explorer: Replace (crashing) threads with ConcurrentMixin #261

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

janezd
Copy link
Contributor

@janezd janezd commented Oct 26, 2023

Issue

Fixes #238. Fixes #219. Fixes #190.

Description of changes
  • Use ConcurrentMixin instead of (incorrect) threads created in the widget code.
  • Change the FR to report progress in 0.5 second intervals instead of on certain number of steps. This makes it smoother (the points no longer have essential tremor) and increases responsiveness (at least in cases I tried).
  • Fix: convert dtype to np.int32, as expected by Cython code. The network can, in principle, have edges in, e.g. np.int64. (The bug was discovered when Network of Neighbors had return a net with such dtype.)
  • Several lint-related changes (including one actual fix)
Includes
  • Code changes

@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2023

Codecov Report

Attention: 52 lines in your changes are missing coverage. Please review.

Comparison is base (9279386) 73.76% compared to head (d041e73) 74.10%.

Files Patch % Lines
orangecontrib/network/widgets/OWNxExplorer.py 53.68% 44 Missing ⚠️
orangecontrib/network/network/layout/__init__.py 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #261      +/-   ##
==========================================
+ Coverage   73.76%   74.10%   +0.33%     
==========================================
  Files          21       21              
  Lines        2977     3000      +23     
==========================================
+ Hits         2196     2223      +27     
+ Misses        781      777       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@janezd janezd marked this pull request as ready for review October 28, 2023 11:38
@VesnaT
Copy link
Contributor

VesnaT commented Feb 13, 2024

When I disconnect the input, comboboxes and outputs are not reset.

image

Copy link
Contributor

@VesnaT VesnaT left a comment

Choose a reason for hiding this comment

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

Probably a Qt6 issue...

Traceback (most recent call last):
  File "/Users/vesna/orange3-network/orangecontrib/network/widgets/graphview.py", line 133, in paint
    pen.setWidth(w)
TypeError: setWidth(self, width: int): argument 1 has unexpected type 'numpy.float64'

network_too_large = widget.Msg("Network is too large to visualize.")
single_node_graph = widget.Msg("I don't do single-node graphs today.")
network_too_large = Msg("Network is too large to visualize.")
single_node_graph = Msg("I don't do single-node graphs today.")
Copy link
Contributor

Choose a reason for hiding this comment

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

single_node_graph is never used.

@VesnaT VesnaT merged commit c31a248 into biolab:master Feb 13, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants