-
Notifications
You must be signed in to change notification settings - Fork 61
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
added brunel network tutorial #2387
Conversation
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.
Finally someone does this. :D
doc/tutorial/brunel.rst
Outdated
:lines: 62-81 | ||
|
||
|
||
The Brunel network is randomly sparsely connected with a fixed in-degree regulated by a connection probability (:math:`\epsilon`). We, therefore, define a function to enable random connectivity. |
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.
A short explanation what sample_subset
aims to achieve?
sim.run(tfinal * U.ms, dt * U.ms) | ||
|
||
|
||
print("This is simulating Brunel network in Arbor!") |
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.
Needed? Looks like debugging :D
Co-authored-by: Thorsten Hater <[email protected]>
… in all relevant files
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.
Almost there, a few comments:
- The images do not render in the preview build, something is off there. See https://arbor--2387.org.readthedocs.build/en/2387/tutorial/brunel.html#the-full-code
- Lint is failing due to the
####
marks. I'd suggest removing those. - Lint also doesn't like
import *
, but here it's ok. I'll find a way to disable it, if you like. Alternatively, you could use a really short name, e.g.import parameters as P
.
fixed typo etc Co-authored-by: Thorsten Hater <[email protected]>
Co-authored-by: Thorsten Hater <[email protected]>
file.text
Outdated
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.
This one shouldn't be here, right?
.flake8
Outdated
@@ -23,3 +23,7 @@ extend-exclude = | |||
build, | |||
# nah, don't care | |||
spack/package.py | |||
per-file-ignores= | |||
python/example/brunel/analysis.py=F405,F403 |
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.
python/example/brunel/analysis.py=F405,F403 | |
python/example/brunel/analysis.py:F405,F403 |
and the next two lines.
python/example/brunel/parameters.py
Outdated
import numpy as np | ||
|
||
|
||
#### define network parameters #### |
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.
#### define network parameters #### | |
# define network parameters |
added Brunel network tutorial on Arbor
Closes: #1933