bsb-nest 0.0.0b2__tar.gz → 4.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bsb-nest might be problematic. Click here for more details.
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/PKG-INFO +6 -6
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/__init__.py +1 -1
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/connection.py +1 -3
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/device.py +1 -2
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/exceptions.py +5 -1
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/pyproject.toml +9 -21
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/LICENSE +0 -0
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/README.md +0 -0
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/adapter.py +0 -0
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/cell.py +0 -0
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/devices/__init__.py +0 -0
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/devices/poisson_generator.py +0 -0
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/devices/spike_recorder.py +0 -0
- {bsb_nest-0.0.0b2 → bsb_nest-4.0.0}/bsb_nest/simulation.py +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bsb-nest
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 4.0.0
|
|
4
4
|
Summary: NEST simulation adapter for the BSB framework.
|
|
5
5
|
Author-email: Robin De Schepper <robingilbert.deschepper@unipv.it>
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
7
7
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
8
|
-
Requires-Dist: bsb-core
|
|
8
|
+
Requires-Dist: bsb-core~=4.0
|
|
9
9
|
Requires-Dist: pre-commit~=3.5 ; extra == "dev"
|
|
10
|
-
Requires-Dist: black~=24.
|
|
10
|
+
Requires-Dist: black~=24.0 ; extra == "dev"
|
|
11
11
|
Requires-Dist: isort~=5.12 ; extra == "dev"
|
|
12
12
|
Requires-Dist: bump-my-version~=0.18 ; extra == "dev"
|
|
13
13
|
Requires-Dist: bsb-core[parallel] ; extra == "parallel"
|
|
14
|
-
Requires-Dist: bsb-test
|
|
14
|
+
Requires-Dist: bsb-test~=4.0 ; extra == "test"
|
|
15
|
+
Requires-Dist: bsb-hdf5~=4.0 ; extra == "test"
|
|
16
|
+
Requires-Dist: bsb-arbor~=4.0 ; extra == "test"
|
|
15
17
|
Requires-Dist: coverage~=7.0 ; extra == "test"
|
|
16
|
-
Requires-Dist: bsb-hdf5>=1.0.0b0 ; extra == "test"
|
|
17
|
-
Requires-Dist: bsb-arbor==0.0.0b1 ; extra == "test"
|
|
18
18
|
Provides-Extra: dev
|
|
19
19
|
Provides-Extra: parallel
|
|
20
20
|
Provides-Extra: test
|
|
@@ -92,9 +92,7 @@ class NestConnection(compose_nodes(NestConnectionSettings, ConnectionModel)):
|
|
|
92
92
|
def predict_mem_iterator(self, pre_nodes, post_nodes, cs):
|
|
93
93
|
avmem = psutil.virtual_memory().available
|
|
94
94
|
predicted_all_mem = (
|
|
95
|
-
len(pre_nodes) * 8 * 2
|
|
96
|
-
+ len(post_nodes) * 8 * 2
|
|
97
|
-
+ len(cs) * 6 * 8 * (16 + 2)
|
|
95
|
+
len(pre_nodes) * 8 * 2 + len(post_nodes) * 8 * 2 + len(cs) * 6 * 8 * (16 + 2)
|
|
98
96
|
) * MPI.get_size()
|
|
99
97
|
predicted_local_mem = predicted_all_mem / len(cs.get_local_chunks("out"))
|
|
100
98
|
if predicted_local_mem > avmem / 2:
|
|
@@ -28,8 +28,7 @@ class NestDevice(DeviceModel):
|
|
|
28
28
|
node_collector = (
|
|
29
29
|
simdata.populations[model][targets]
|
|
30
30
|
for model, targets in simdata.populations.items()
|
|
31
|
-
if not self.targetting.cell_models
|
|
32
|
-
or model in self.targetting.cell_models
|
|
31
|
+
if not self.targetting.cell_models or model in self.targetting.cell_models
|
|
33
32
|
)
|
|
34
33
|
return sum(node_collector, start=nest.NodeCollection())
|
|
35
34
|
|
|
@@ -5,14 +5,18 @@ class KernelWarning(Warning):
|
|
|
5
5
|
class NestError(Exception):
|
|
6
6
|
pass
|
|
7
7
|
|
|
8
|
+
|
|
8
9
|
class NestKernelError(NestError):
|
|
9
10
|
pass
|
|
10
11
|
|
|
12
|
+
|
|
11
13
|
class NestModuleError(NestKernelError):
|
|
12
14
|
pass
|
|
13
15
|
|
|
16
|
+
|
|
14
17
|
class NestModelError(NestError):
|
|
15
18
|
pass
|
|
16
19
|
|
|
20
|
+
|
|
17
21
|
class NestConnectError(NestError):
|
|
18
|
-
pass
|
|
22
|
+
pass
|
|
@@ -9,7 +9,7 @@ readme = "README.md"
|
|
|
9
9
|
license = {file = "LICENSE"}
|
|
10
10
|
classifiers = ["License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"]
|
|
11
11
|
dynamic = ["version", "description"]
|
|
12
|
-
dependencies = ["bsb-core
|
|
12
|
+
dependencies = ["bsb-core~=4.0"]
|
|
13
13
|
|
|
14
14
|
[tool.flit.module]
|
|
15
15
|
name = "bsb_nest"
|
|
@@ -20,15 +20,15 @@ nest = "bsb_nest"
|
|
|
20
20
|
[project.optional-dependencies]
|
|
21
21
|
parallel = ["bsb-core[parallel]"]
|
|
22
22
|
test = [
|
|
23
|
-
"bsb-test
|
|
24
|
-
"
|
|
25
|
-
"bsb-hdf5>=1.0.0b0",
|
|
23
|
+
"bsb-test~=4.0",
|
|
24
|
+
"bsb-hdf5~=4.0",
|
|
26
25
|
# Required to load the Brunel config file
|
|
27
|
-
"bsb-arbor
|
|
26
|
+
"bsb-arbor~=4.0",
|
|
27
|
+
"coverage~=7.0"
|
|
28
28
|
]
|
|
29
29
|
dev = [
|
|
30
30
|
"pre-commit~=3.5",
|
|
31
|
-
"black~=24.
|
|
31
|
+
"black~=24.0",
|
|
32
32
|
"isort~=5.12",
|
|
33
33
|
"bump-my-version~=0.18"
|
|
34
34
|
]
|
|
@@ -41,21 +41,9 @@ profile = "black"
|
|
|
41
41
|
known_third_party = ["nest"]
|
|
42
42
|
|
|
43
43
|
[tool.bumpversion]
|
|
44
|
-
current_version = "
|
|
45
|
-
parse = "
|
|
46
|
-
|
|
47
|
-
(?P<minor>0|[1-9]\\d*)\\.
|
|
48
|
-
(?P<patch>0|[1-9]\\d*)
|
|
49
|
-
(?:
|
|
50
|
-
- # dash seperator for pre-release section
|
|
51
|
-
(?P<pre_l>[a-zA-Z-]+) # pre-release label
|
|
52
|
-
(?P<pre_n>0|[1-9]\\d*) # pre-release version number
|
|
53
|
-
)? # pre-release section is optional
|
|
54
|
-
"""
|
|
55
|
-
serialize = [
|
|
56
|
-
"{major}.{minor}.{patch}-{pre_l}{pre_n}",
|
|
57
|
-
"{major}.{minor}.{patch}",
|
|
58
|
-
]
|
|
44
|
+
current_version = "4.0.0"
|
|
45
|
+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
46
|
+
serialize = ["{major}.{minor}.{patch}"]
|
|
59
47
|
search = "{current_version}"
|
|
60
48
|
replace = "{new_version}"
|
|
61
49
|
regex = false
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|