-
Notifications
You must be signed in to change notification settings - Fork 52
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 refactoring #500
Conversation
Codecov Report
@@ Coverage Diff @@
## master #500 +/- ##
==========================================
+ Coverage 87.74% 89.93% +2.18%
==========================================
Files 19 20 +1
Lines 3828 3883 +55
==========================================
+ Hits 3359 3492 +133
+ Misses 469 391 -78
Continue to review full report at Codecov.
|
@chenghuzi I was looking at |
see how the |
I think probably we can directly call this in a |
How do you plan to use the class and the methods in the documentation? Let's say you are describing the part where drives must be added? You would want to: a) activate the drive tab is that something that can be done with the current interface? |
@chenghuzi you need to update |
We have dynamic connectivity tab now in 8c920a2 |
Updated in c39810a |
should the code logic for finding possible connectivity pairs between cell types be in a separate function? I can imagine this logic could be useful outside of the GUI as well. |
Agreed. But we may need another PR for this because the current way we use to extract connections is hierarchical while a general method (possibly in the form of a method in |
|
Great. I'm doing a pass over the code right now. Report back in an hour :-) |
5e0cb9f
to
d37bc45
Compare
okay back to you. Finish this PR: https://github.com/chenghuzi/hnn-core/pull/2/files and I think we're good to go here. I also had some trouble following the logic of loading the param files. But let's discuss that later. |
[WIP] MAINT: separate layout from logic
Co-authored-by: Mainak Jas <[email protected]>
All format issues fixed, could I merge this now @jasmainak ? |
@@ -943,7 +943,8 @@ def on_upload_change(change, params, tstop, dt, log_out, simulation_data, | |||
with log_out: | |||
print( | |||
"Same param. No reloading." | |||
"To force reloading, hit \"clear uploaded parameters\" button") | |||
"To force reloading, hit \"clear uploaded parameters\" button", |
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.
see: https://peps.python.org/pep-0008/#string-quotes
"When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string. It improves readability."
Just avoid backslashes when you can :)
Never merge your own PR :) But I think it's time to move on to the next steps! Thanks @chenghuzi . This is a great improvement 🥳 🥳 🥳 . Next step is to try and figure out automatic building of documentation using |
I figured out a way to do that, though not every elegant. Will open a PR for that soon. |
Try to refactor the GUI code in an OP manner.