Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validated multi-chunk simulations (#6)
* dump * add multi sim and test * fix merged pyproject * fix numpy ints messing with NEURON * fix NeuronPopulation typo and numpy int lookup * improve arborized model type handling (still open issue) * add chunked test * fix multi CM/chunk transmapping + gid on instances * validate multichunk test * validate multi CM * add ci * fix ci * use fixed arborize version that works without installing arbor * bump deps * avoid neuronsimulator/nrn#2641
- Loading branch information
Showing
19 changed files
with
467 additions
and
173 deletions.
There are no files selected for viewing
This file contains 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,34 @@ | ||
[bumpversion] | ||
current_version = 0.0.0b2 | ||
files = bsb_neuron/__init__.py | ||
commit = True | ||
tag = True | ||
parse = ^ | ||
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) | ||
((?P<prekind>a|alpha|b|beta|d|dev|rc) | ||
(?P<pre>\d+) # pre-release version num | ||
)? | ||
(\.(?P<postkind>post)(?P<post>\d+))? # post-release | ||
serialize = | ||
{major}.{minor}.{patch}{prekind}{pre}.{postkind}{post} | ||
{major}.{minor}.{patch}{prekind}{pre} | ||
{major}.{minor}.{patch}{postkind}{post} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:prekind] | ||
optional_value = _ | ||
values = | ||
_ | ||
dev | ||
d | ||
alpha | ||
a | ||
beta | ||
b | ||
rc | ||
|
||
[bumpversion:part:postkind] | ||
optional_value = _ | ||
values = | ||
_ | ||
post |
This file contains 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,15 @@ | ||
name: Black | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
black: | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: psf/black@stable | ||
with: | ||
options: "--check --verbose" | ||
version: "24.1.1" |
This file contains 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,20 @@ | ||
name: Run isort | ||
on: | ||
- push | ||
|
||
jobs: | ||
isort: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
- name: Install apt dependencies | ||
# Install `libopenmpi` for mpi4py | ||
run: | | ||
sudo apt update | ||
sudo apt install openmpi-bin libopenmpi-dev | ||
# Install dependencies for proper 1st/2nd/3rd party import sorting | ||
- run: pip install -e .[parallel] | ||
- uses: isort/isort-action@master |
This file contains 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,33 @@ | ||
name: Test BSB NEURON adapter | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install apt dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install openmpi-bin libopenmpi-dev | ||
- name: Install dependencies & self | ||
run: | | ||
pip install --upgrade pip | ||
# Install self, with test dependencies | ||
pip install .[test,parallel] | ||
- name: Run tests & coverage | ||
run: | | ||
coverage run -p -m unittest discover -v -s ./tests | ||
mpiexec -n 2 coverage run -p -m unittest discover -v -s ./tests |
This file contains 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,10 @@ | ||
repos: | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.1.1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: isort (python) |
This file contains 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 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 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.