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

[WIP] Feat GUI add connection probability #843

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gtdang
Copy link
Collaborator

@gtdang gtdang commented Jul 31, 2024

Add connection probability to connection accordion boxes.
Screenshot 2024-07-31 at 12 19 36 PM

[] Add probability widgets to connection boxes
[] Test for connection box elements
[] Test for change in network construction

@gtdang gtdang linked an issue Jul 31, 2024 that may be closed by this pull request
@gtdang gtdang requested a review from ntolley July 31, 2024 16:21
value=conn_data[receptor_name]['weight'], disabled=False,
continuous_update=False, min=0, max=1e6, step=0.01,
description="weight", style=style)
probability_text_input = BoundedFloatText(
value=conn_data[receptor_name]['probability'], disabled=False,
Copy link
Contributor

Choose a reason for hiding this comment

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

A simple test to run would be to reduce the probability of one of the connections, and assert that there are fewer gid_pairs

@gtdang gtdang force-pushed the feat-gui-add-connection-probability branch from e2d7efa to 7ccc2b8 Compare July 31, 2024 19:25
@gtdang
Copy link
Collaborator Author

gtdang commented Aug 1, 2024

This PR is on hold. The problem is that if probability is changed, gid_pairs also needs to be recalculated. Work from this PR can be used once a means to update connection probabilities and associated parameters is implemented. This can either be on an API level, or changing the logic of the GUI to rebuild connections on Network init.

A patch fix to remove the GUI probability assignment logic was made in #844.

@asoplata asoplata added the hnn-gui HNN GUI label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hnn-gui HNN GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GUI: Connection Probability
3 participants