-
Notifications
You must be signed in to change notification settings - Fork 11
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
Connectivity_matrix_connect update #489
base: main
Are you sure you want to change the base?
Changes from all commits
2d6a6f0
8a7b370
dbb8ef5
cf498f6
588198a
322e60c
b80f462
4971c32
5471c85
2a85d5a
23b31fe
c504689
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,13 +31,13 @@ def test_network_grad(SimpleNet): | |
_ = np.random.seed(0) | ||
pre = net.cell([0, 1, 2]) | ||
post = net.cell([3, 4, 5]) | ||
fully_connect(pre, post, IonotropicSynapse()) | ||
fully_connect(pre, post, TestSynapse()) | ||
fully_connect(pre, post, IonotropicSynapse(), random_post_comp=True) | ||
fully_connect(pre, post, TestSynapse(), random_post_comp=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there a test for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of the tests in test_connection.py are with random_post_comp=False, but the tests that used connection.py everywhere else (test_grad.py and test_basic_modules.py) use random_post_comp=True with fully connect (so that the simulation results are the same as before). I could add tests for random_post_comp=True to test_connection.py -- would this then be enough coverage? |
||
|
||
pre = net.cell([3, 4, 5]) | ||
post = net.cell(6) | ||
fully_connect(pre, post, IonotropicSynapse()) | ||
fully_connect(pre, post, TestSynapse()) | ||
fully_connect(pre, post, IonotropicSynapse(), random_post_comp=True) | ||
fully_connect(pre, post, TestSynapse(), random_post_comp=True) | ||
|
||
area = 2 * pi * 10.0 * 1.0 | ||
point_process_to_dist_factor = 100_000.0 / area | ||
|
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.
should we rename
fully_connect
tofully_connect_cells
? Might be less confusing, since otherwise connections are made comp 2 comp