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

[MRG] GUI n_drive_cells widget #861

Merged
merged 14 commits into from
Aug 14, 2024

Conversation

gtdang
Copy link
Collaborator

@gtdang gtdang commented Aug 14, 2024

Needs #853 merged first
Commits for this work start at 4789e9e. Previous are in #853.

Adds "number of drive cells" to the drive widgets.

Screenshot 2024-08-14 at 10 06 04 AM

Work done:

  1. Created widget for n_drive_cells parameter
  2. Changed the Synchronous inputs checkbox to Cell Specific to align with the API keyword
  3. Added observer to disable the n_dive_cells widget if the cell specific checkbox is checked

closes #850

@gtdang gtdang requested a review from ntolley August 14, 2024 14:20
@gtdang gtdang changed the title [WIP] GUI n_drive_cells widget [MRG] GUI n_drive_cells widget Aug 14, 2024
@gtdang gtdang marked this pull request as ready for review August 14, 2024 14:23
default_data = {
'tstart': 0.,
'tstart_std': 0.,
'tstop': tstop_widget.value,
'burst_rate': 7.5,
'burst_std': 0,
'repeats': 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason to remove repeats?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed this to 'numspikes' to match the api for drive creation.

gtdang added 13 commits August 14, 2024 14:47
This was changed to not get confused with the cell_specific parameter of the drives.
numspikes was previously not passed to bursty drive construction. The widget was named "repeats" and was not used. The name was changed to "numspikes" to be consistent with the API.
-added input widget for n_drive_cells
-renamed "sync_inputs" checkbox to "cell_specific"
-set an observer to disable n_drive_cells widget if "cell_specific" is True
-shortened argument names
-updated default dictionary and update logic
-added input widget for n_drive_cells
-renamed "sync_inputs" checkbox to "cell_specific"
-set an observer to disable n_drive_cells widget if "cell_specific" is True
-shortened argument names
-updated default dictionary and update logic
-added input widget for n_drive_cells
-renamed "sync_inputs" checkbox to "cell_specific"
-set an observer to disable n_drive_cells widget if "cell_specific" is True
-shortened argument names
-updated default dictionary and update logic
The n_drive_cells parameter implementation now allows these asserts to pass.
# Check that the n_drive_cells is not disabled
assert not gui.drive_widgets[0]['n_drive_cells'].disabled

# set synch inputs to first driver in simulation
Copy link
Contributor

@ntolley ntolley Aug 14, 2024

Choose a reason for hiding this comment

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

Suggested change
# set synch inputs to first driver in simulation
# set sync inputs to first drive in simulation

assert not gui.drive_widgets[0]['n_drive_cells'].disabled

# set synch inputs to first driver in simulation
driver_name = gui.drive_widgets[0]['name']
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
driver_name = gui.drive_widgets[0]['name']
drive_name = gui.drive_widgets[0]['name']

@ntolley ntolley enabled auto-merge (rebase) August 14, 2024 19:14
@ntolley ntolley merged commit 61e9935 into jonescompneurolab:master Aug 14, 2024
12 checks passed
@gtdang gtdang deleted the feat-gui-n-cells branch August 29, 2024 17:34
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.

GUI: Network configuration different after GUI initialization
2 participants