bsb-nest 4.1.0__tar.gz → 4.2.1__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.

@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.1
2
+ Name: bsb-nest
3
+ Version: 4.2.1
4
+ Summary: NEST simulation adapter for the BSB framework.
5
+ Author-email: Robin De Schepper <robingilbert.deschepper@unipv.it>
6
+ Description-Content-Type: text/markdown
7
+ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
8
+ Requires-Dist: bsb-core~=4.1
9
+ Requires-Dist: bsb-nest[test] ; extra == "dev"
10
+ Requires-Dist: build~=1.0 ; extra == "dev"
11
+ Requires-Dist: twine~=4.0 ; extra == "dev"
12
+ Requires-Dist: pre-commit~=3.5 ; extra == "dev"
13
+ Requires-Dist: black~=24.1.1 ; extra == "dev"
14
+ Requires-Dist: isort~=5.12 ; extra == "dev"
15
+ Requires-Dist: snakeviz~=2.1 ; extra == "dev"
16
+ Requires-Dist: bump-my-version~=0.24 ; extra == "dev"
17
+ Requires-Dist: bsb-core[parallel] ; extra == "parallel"
18
+ Requires-Dist: bsb-core[parallel] ; extra == "test"
19
+ Requires-Dist: bsb-test~=4.0 ; extra == "test"
20
+ Requires-Dist: bsb-hdf5~=4.0 ; extra == "test"
21
+ Requires-Dist: bsb-arbor~=4.0 ; extra == "test"
22
+ Requires-Dist: coverage~=7.0 ; extra == "test"
23
+ Provides-Extra: dev
24
+ Provides-Extra: parallel
25
+ Provides-Extra: test
26
+
27
+ [![Build Status](https://github.com/dbbs-lab/bsb-nest/actions/workflows/build.yml/badge.svg)](https://github.com/dbbs-lab/bsb-nest/actions/workflows/build.yml)
28
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
29
+
30
+ # bsb-nest
31
+
32
+ bsb-nest is a pluggin of [BSB](https://github.com/dbbs-lab/bsb) (see also
33
+ [bsb-core](https://github.com/dbbs-lab/bsb-core)).
34
+ It contains the interfaces and tools to simulate BSB circuit with the
35
+ [NEST simulator](https://www.nest-simulator.org/).
36
+
@@ -0,0 +1,9 @@
1
+ [![Build Status](https://github.com/dbbs-lab/bsb-nest/actions/workflows/build.yml/badge.svg)](https://github.com/dbbs-lab/bsb-nest/actions/workflows/build.yml)
2
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
3
+
4
+ # bsb-nest
5
+
6
+ bsb-nest is a pluggin of [BSB](https://github.com/dbbs-lab/bsb) (see also
7
+ [bsb-core](https://github.com/dbbs-lab/bsb-core)).
8
+ It contains the interfaces and tools to simulate BSB circuit with the
9
+ [NEST simulator](https://www.nest-simulator.org/).
@@ -9,4 +9,4 @@ from .adapter import NestAdapter
9
9
  from .simulation import NestSimulation
10
10
 
11
11
  __plugin__ = SimulationBackendPlugin(Simulation=NestSimulation, Adapter=NestAdapter)
12
- __version__ = "4.1.0"
12
+ __version__ = "4.2.1"
@@ -69,6 +69,8 @@ class NestConnection(compose_nodes(NestConnectionSettings, ConnectionModel)):
69
69
  pre_nodes, post_nodes, cs
70
70
  ):
71
71
  MPI.barrier()
72
+ if len(pre_locs) == 0 or len(post_locs) == 0:
73
+ continue
72
74
  cell_pairs, multiplicity = np.unique(
73
75
  np.column_stack((pre_locs[:, 0], post_locs[:, 0])),
74
76
  return_counts=True,
@@ -95,7 +97,8 @@ class NestConnection(compose_nodes(NestConnectionSettings, ConnectionModel)):
95
97
  predicted_all_mem = (
96
98
  len(pre_nodes) * 8 * 2 + len(post_nodes) * 8 * 2 + len(cs) * 6 * 8 * (16 + 2)
97
99
  ) * MPI.get_size()
98
- predicted_local_mem = predicted_all_mem / len(cs.get_local_chunks("out"))
100
+ n_chunks = len(cs.get_local_chunks("out"))
101
+ predicted_local_mem = (predicted_all_mem / n_chunks) if n_chunks > 0 else 0.0
99
102
  if predicted_local_mem > avmem / 2:
100
103
  # Iterate block-by-block
101
104
  return self.block_iterator(cs)
@@ -20,6 +20,7 @@ nest = "bsb_nest"
20
20
  [project.optional-dependencies]
21
21
  parallel = ["bsb-core[parallel]"]
22
22
  test = [
23
+ "bsb-core[parallel]",
23
24
  "bsb-test~=4.0",
24
25
  "bsb-hdf5~=4.0",
25
26
  # Required to load the Brunel config file
@@ -27,10 +28,14 @@ test = [
27
28
  "coverage~=7.0"
28
29
  ]
29
30
  dev = [
31
+ "bsb-nest[test]",
32
+ "build~=1.0",
33
+ "twine~=4.0",
30
34
  "pre-commit~=3.5",
31
- "black~=24.0",
35
+ "black~=24.1.1",
32
36
  "isort~=5.12",
33
- "bump-my-version~=0.18"
37
+ "snakeviz~=2.1",
38
+ "bump-my-version~=0.24"
34
39
  ]
35
40
 
36
41
  [tool.black]
@@ -41,7 +46,7 @@ profile = "black"
41
46
  known_third_party = ["nest"]
42
47
 
43
48
  [tool.bumpversion]
44
- current_version = "4.1.0"
49
+ current_version = "4.2.1"
45
50
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
46
51
  serialize = ["{major}.{minor}.{patch}"]
47
52
  search = "{current_version}"
bsb_nest-4.1.0/PKG-INFO DELETED
@@ -1,23 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: bsb-nest
3
- Version: 4.1.0
4
- Summary: NEST simulation adapter for the BSB framework.
5
- Author-email: Robin De Schepper <robingilbert.deschepper@unipv.it>
6
- Description-Content-Type: text/markdown
7
- Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
8
- Requires-Dist: bsb-core~=4.1
9
- Requires-Dist: pre-commit~=3.5 ; extra == "dev"
10
- Requires-Dist: black~=24.0 ; extra == "dev"
11
- Requires-Dist: isort~=5.12 ; extra == "dev"
12
- Requires-Dist: bump-my-version~=0.18 ; extra == "dev"
13
- Requires-Dist: bsb-core[parallel] ; extra == "parallel"
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"
17
- Requires-Dist: coverage~=7.0 ; extra == "test"
18
- Provides-Extra: dev
19
- Provides-Extra: parallel
20
- Provides-Extra: test
21
-
22
- # bsb-nest
23
-
bsb_nest-4.1.0/README.md DELETED
@@ -1 +0,0 @@
1
- # bsb-nest
File without changes
File without changes
File without changes
File without changes