-
Notifications
You must be signed in to change notification settings - Fork 53
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
[MRG] GUI n_drive_cells widget #861
Conversation
default_data = { | ||
'tstart': 0., | ||
'tstart_std': 0., | ||
'tstop': tstop_widget.value, | ||
'burst_rate': 7.5, | ||
'burst_std': 0, | ||
'repeats': 1, |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
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
-Tests more than one cell
The n_drive_cells parameter implementation now allows these asserts to pass.
fe5ddbd
to
7224abe
Compare
hnn_core/tests/test_gui.py
Outdated
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# set synch inputs to first driver in simulation | |
# set sync inputs to first drive in simulation |
hnn_core/tests/test_gui.py
Outdated
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'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
driver_name = gui.drive_widgets[0]['name'] | |
drive_name = gui.drive_widgets[0]['name'] |
Needs #853 merged first
Commits for this work start at 4789e9e. Previous are in #853.
Adds "number of drive cells" to the drive widgets.
Work done:
closes #850