Replies: 2 comments 1 reply
-
Fair enough. Can you start sketching out the object? What attributes will it contain and what methods? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am thinking we should make a class that looks like this: gui = HNNGUI()
gui.load_network(fname)
gui.add_drive('proximal', 'evoked')
gui.widgets['drives']['evoked0']['time'] = 5.2
gui.run() If we design it this way, it will be straightforward to test and also to document. Do you want to give it a shot? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just added a simple test for our gui bf2831b. I think probably we need to add more tests for those callback functions only after refactoring the current function-based code into object-base one. As callbacks are operating on certain ipywidgets, if we have an object which gives us access to those widget members it will be much easier for testing. We can do this after merging the current PR.
Beta Was this translation helpful? Give feedback.
All reactions