-
Notifications
You must be signed in to change notification settings - Fork 12
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
Export human readable format from standard dictionary #37
Export human readable format from standard dictionary #37
Conversation
Merge master with human readable to sync
This reverts commit d834e7c. Seperate nmlexport PR commits from human readable PR
I guess, the PR is now ready for your kind review |
This is really nice work. I'll make a few detailed comments in a minute, but these are very little things.
To make the second point clear: A simple call with default parameters, e.g. A call with non-standard parameters would instead create its own device.build(debug=True, github_md=True) would be instead custom_ expander = Std_mdexpander(github_md=True)
device.build(debug=True, expander=custom_expander) I think this will also make the Does that make sense? I think this change is important because we commit to a general structure once this gets released, and I feel that the current approach will become problematic in the future. PS: How about renaming |
yes, that makes much sense, and I will do the necessary changes |
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.
As promised, here a few smallish things in addition to the slightly bigger structural change I mentioned in my earlier comment.
Hi, thank you for the review! |
Looking good. I realized that unfortunately cannot use np.set_printoptions(...)
result = str(arr)
np.set_printoptions(...) # reset previous options dance ( Another small thing that I just noticed: synaptic connections that use the generator syntax need to quote the syntax with back-ticks (
I think this is the best option for now. I guess in the longer term we could do a bit of analysis and if the order of the operations does not matter (as is often the case), we could rather attach them to their objects which is a bit more readable. As a general (again, minor) suggestion: I'd leave away the "defined", e.g. I'd just use "Initializations and synaptic connections". Also in other places, e.g. instead of "Synapses defined:", simply "Synapses:". |
Great! I'll do the changes. |
Hi, a couple of things in the current version that I would like to highlight,
|
Good point! This is something that we have to fix in the base exporter, we need to store the
This isn't a problem, but we can always make it available with a shorter import if we want. |
All is looking good to me. There's still a bit of polishing to do here and there, but I think it is ready to merge for now. Maybe a small thing to change (because it wlll also appear in the developer docs): since the |
Cool! Can I make the subgroup changes in this PR itself? |
Sure! Sorry for the late reply... |
… shorten MdExpander import
This is all looking good to me, great work. Do you still want to add something in this PR? If not, I'll go ahead with the merge. |
Hi, thanks for your review :) |
Sorry, I had accidentally logged out of gitter and did not see your question. I think it all looks good, the correct information for subgroups is shown and we can always tweak details of the formulation later. |
Add human-readable format export from standard dictionary representation
Fixes #28
Fixes #41