bsb-nest 0.0.0b2__py2.py3-none-any.whl → 4.0.0__py2.py3-none-any.whl
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/__init__.py +1 -1
- bsb_nest/connection.py +1 -3
- bsb_nest/device.py +1 -2
- bsb_nest/exceptions.py +5 -1
- {bsb_nest-0.0.0b2.dist-info → bsb_nest-4.0.0.dist-info}/METADATA +6 -6
- bsb_nest-4.0.0.dist-info/RECORD +15 -0
- bsb_nest-0.0.0b2.dist-info/RECORD +0 -15
- {bsb_nest-0.0.0b2.dist-info → bsb_nest-4.0.0.dist-info}/LICENSE +0 -0
- {bsb_nest-0.0.0b2.dist-info → bsb_nest-4.0.0.dist-info}/WHEEL +0 -0
- {bsb_nest-0.0.0b2.dist-info → bsb_nest-4.0.0.dist-info}/entry_points.txt +0 -0
bsb_nest/__init__.py
CHANGED
bsb_nest/connection.py
CHANGED
|
@@ -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:
|
bsb_nest/device.py
CHANGED
|
@@ -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
|
|
bsb_nest/exceptions.py
CHANGED
|
@@ -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
|
|
@@ -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
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
bsb_nest/__init__.py,sha256=R5U70Nlnu9lvz25UbdEgq6JvulSmwjF3FZaYd5208fk,311
|
|
2
|
+
bsb_nest/adapter.py,sha256=Zlt0QuV-3UtFoHrSF_sdPb4O1u0OVTEzBsEqjj0M3QQ,6733
|
|
3
|
+
bsb_nest/cell.py,sha256=hYuCp-60RlGO5lO7SdJsYadoyFjKgiqBqP9aLOpTxcc,772
|
|
4
|
+
bsb_nest/connection.py,sha256=TLol1Bt0-NFwK9Fp_Mg1QeUvB1BMu5QYATI2s1AdayE,5542
|
|
5
|
+
bsb_nest/device.py,sha256=Cd5_sMbISjTtHghd8gIqTZ23kahSKLJsGpDANyVidAI,2461
|
|
6
|
+
bsb_nest/exceptions.py,sha256=I-V_c7SUsVm2oCYrTV3TYiQnLaL4bX6jdndArikAREI,286
|
|
7
|
+
bsb_nest/simulation.py,sha256=09P7u78z6ruYD24RWDroiBypSix_RPzRHoS6MZELer0,707
|
|
8
|
+
bsb_nest/devices/__init__.py,sha256=ecfuof-qH8WdPYnbmn4iMZPjXn1WIzxzAZPa6_iPYLI,92
|
|
9
|
+
bsb_nest/devices/poisson_generator.py,sha256=Dr7jtoHk7HCYoGcqCqpX4FVHVUkWx1RI3GHIRq538Fk,1030
|
|
10
|
+
bsb_nest/devices/spike_recorder.py,sha256=W2xuoKNEYkdYNfNPdPCJe7snc-ff3PB1miX8Eqrix7I,924
|
|
11
|
+
bsb_nest-4.0.0.dist-info/entry_points.txt,sha256=uJlX9h2VeYfAumav18IM2PTJ3FssfwDUnUmfSFdR2SA,41
|
|
12
|
+
bsb_nest-4.0.0.dist-info/LICENSE,sha256=0SAgqCl8RI6Vm7Rv5YC6CPyLA2MXedQM9tq17WMXl-o,33041
|
|
13
|
+
bsb_nest-4.0.0.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
|
|
14
|
+
bsb_nest-4.0.0.dist-info/METADATA,sha256=rmsjb4Pi1sGhlfXFcxBcRef1pUAQh2lmSHIXYx8akY0,845
|
|
15
|
+
bsb_nest-4.0.0.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
bsb_nest/__init__.py,sha256=s8CFh-2LZQ5V-lSSh47o2r7-Rsuhdw_wslWIey5VYPw,314
|
|
2
|
-
bsb_nest/adapter.py,sha256=Zlt0QuV-3UtFoHrSF_sdPb4O1u0OVTEzBsEqjj0M3QQ,6733
|
|
3
|
-
bsb_nest/cell.py,sha256=hYuCp-60RlGO5lO7SdJsYadoyFjKgiqBqP9aLOpTxcc,772
|
|
4
|
-
bsb_nest/connection.py,sha256=sdFiTSCyM0u8gcE5rpMjn29bX3bmhcRPyLBc7L7KFXc,5568
|
|
5
|
-
bsb_nest/device.py,sha256=Hw2bIzMmUAWHlrOi-fn72riyiFFmT338YKlkh2KNCaU,2478
|
|
6
|
-
bsb_nest/exceptions.py,sha256=c0_-DqSXNm0pHP-v_pQqUcC2uhFhDUAb5TVAw6QW-P8,276
|
|
7
|
-
bsb_nest/simulation.py,sha256=09P7u78z6ruYD24RWDroiBypSix_RPzRHoS6MZELer0,707
|
|
8
|
-
bsb_nest/devices/__init__.py,sha256=ecfuof-qH8WdPYnbmn4iMZPjXn1WIzxzAZPa6_iPYLI,92
|
|
9
|
-
bsb_nest/devices/poisson_generator.py,sha256=Dr7jtoHk7HCYoGcqCqpX4FVHVUkWx1RI3GHIRq538Fk,1030
|
|
10
|
-
bsb_nest/devices/spike_recorder.py,sha256=W2xuoKNEYkdYNfNPdPCJe7snc-ff3PB1miX8Eqrix7I,924
|
|
11
|
-
bsb_nest-0.0.0b2.dist-info/entry_points.txt,sha256=uJlX9h2VeYfAumav18IM2PTJ3FssfwDUnUmfSFdR2SA,41
|
|
12
|
-
bsb_nest-0.0.0b2.dist-info/LICENSE,sha256=0SAgqCl8RI6Vm7Rv5YC6CPyLA2MXedQM9tq17WMXl-o,33041
|
|
13
|
-
bsb_nest-0.0.0b2.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
|
|
14
|
-
bsb_nest-0.0.0b2.dist-info/METADATA,sha256=HbIuYpS8qHZ873WY-Nd3lC0_JSw2V5fJO_piDFXXm0M,891
|
|
15
|
-
bsb_nest-0.0.0b2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|