-
Notifications
You must be signed in to change notification settings - Fork 5
enable cell_permute for coreneuron
#375
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
1bfeda3
`corenrn` can run with `cell-permute = {0 (cpu, gpu), 1 (cpu, gpu), 2…
cattabiani 490d15f
test CI
cattabiani 6d360be
test CI
cattabiani 15dfb62
gain
cattabiani 3b50d31
return back
cattabiani 3731817
fix docstring
cattabiani 013ca14
cell_permute now takes strings: unpermuted, node-adjacency
cattabiani 6ce3515
Merge branch 'main' into katta/cell_permute
cattabiani 79685a2
moved tests to new file
cattabiani 2c19e62
Merge branch 'main' into katta/cell_permute
cattabiani 6aa54c8
Merge branch 'main' into katta/cell_permute
cattabiani 1c13bb1
error if cell permute is set to 1
cattabiani 7928c34
new error type
cattabiani b345e1b
Merge branch 'main' into katta/cell_permute
cattabiani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| import pytest | ||
|
|
||
| from neurodamus.core.configuration import SimConfig | ||
| from neurodamus.core.configuration import CellPermute | ||
|
|
||
| from neurodamus.core.coreneuron_simulation_config import CoreSimulationConfig | ||
|
|
||
|
|
||
| @pytest.mark.parametrize( | ||
| "create_tmp_simulation_config_file", | ||
| [{"simconfig_fixture": "ringtest_baseconfig", | ||
| "extra_config": { | ||
| "target_simulator": "CORENEURON", | ||
| } | ||
| }], | ||
| indirect=True, | ||
| ) | ||
| def test_cli_cell_permute_simple_setting(create_tmp_simulation_config_file): | ||
| from neurodamus import Neurodamus | ||
| Neurodamus(create_tmp_simulation_config_file, cell_permute="node-adjacency", keep_build=True) | ||
| assert SimConfig.cell_permute == CellPermute.NODE_ADJACENCY | ||
| sim_conf = CoreSimulationConfig.load("build/sim.conf") | ||
| assert sim_conf.cell_permute == 1 | ||
|
|
||
| @pytest.mark.parametrize( | ||
| "create_tmp_simulation_config_file", | ||
| [{"simconfig_fixture": "ringtest_baseconfig", | ||
| "extra_config": { | ||
| "target_simulator": "CORENEURON", | ||
| } | ||
| }], | ||
| indirect=True, | ||
| ) | ||
| def test_cli_cell_permute_default(create_tmp_simulation_config_file): | ||
| from neurodamus import Neurodamus | ||
| Neurodamus(create_tmp_simulation_config_file, keep_build=True) | ||
| assert SimConfig.cell_permute == CellPermute.UNPERMUTED | ||
| sim_conf = CoreSimulationConfig.load("build/sim.conf") | ||
| assert sim_conf.cell_permute == 0 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.