bsb-arbor 6.0.2__py3-none-any.whl → 6.0.4__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-arbor might be problematic. Click here for more details.

bsb_arbor/adapter.py CHANGED
@@ -69,6 +69,7 @@ class Population:
69
69
  This class manages a collection of cells from a specific cell model, handling their
70
70
  GID ranges and providing methods to access and manipulate subsets of the population.
71
71
  """
72
+
72
73
  def __init__(self, simdata, cell_model, offset):
73
74
  """
74
75
  Initialize a population of cells.
@@ -203,7 +204,9 @@ class Population:
203
204
  start = i
204
205
  stop = i + 1
205
206
  prev = i
207
+ ranges.append((start, stop))
206
208
  pop._ranges = ranges
209
+
207
210
  return pop
208
211
 
209
212
  def _subpop_one(self, item):
@@ -523,7 +526,7 @@ class ArborAdapter(SimulatorAdapter):
523
526
 
524
527
  def _all_bools(arr):
525
528
  try:
526
- return all(isinstance(b, bool) for b in arr)
529
+ return all(np.issubdtype(type(b), np.bool_) for b in arr)
527
530
  except TypeError:
528
531
  # Not iterable
529
532
  return False
@@ -531,7 +534,7 @@ def _all_bools(arr):
531
534
 
532
535
  def _all_ints(arr):
533
536
  try:
534
- return all(isinstance(b, int) for b in arr)
537
+ return all(np.issubdtype(type(b), np.integer) for b in arr)
535
538
  except TypeError:
536
539
  # Not iterable
537
540
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bsb-arbor
3
- Version: 6.0.2
3
+ Version: 6.0.4
4
4
  Summary: Arbor simulation adapter for the BSB framework.
5
5
  Author-email: Robin De Schepper <robin@alexandria.sc>, Dimitri Rodarie <dimitri.rodarie@unipv.it>
6
6
  Requires-Python: >=3.10,<4
@@ -1,5 +1,5 @@
1
1
  bsb_arbor/__init__.py,sha256=1kJSMSgt1vnjllcKXRUfomu0XTczbqYkkRf-TjSQbP8,437
2
- bsb_arbor/adapter.py,sha256=OJdbfNVQ_74KtFlgQit1MCi4zuoNzf2WOzs-wIzDv00,18996
2
+ bsb_arbor/adapter.py,sha256=AI7ONwro434QExib2NDcQ-WsgFruZFML_uXFFD4Iogw,19064
3
3
  bsb_arbor/cell.py,sha256=V4JxsdwS_FNfQ_wRjnJH-kFVLMwipzLSHcYbf-VgP_c,2476
4
4
  bsb_arbor/connection.py,sha256=1u3yLA7R0G3Rxxf0Zvw3AcBa242n8XeSVej_r8iXjXY,2446
5
5
  bsb_arbor/device.py,sha256=5PD6nujSlTu74BonS5Ojp7LhopusQ4cDVEEAYg1aAMA,1752
@@ -8,8 +8,8 @@ bsb_arbor/devices/__init__.py,sha256=8PgEH4gktvNW7KywuFXIzZXsPuWayWt0BPuKz6sJyPA
8
8
  bsb_arbor/devices/poisson_generator.py,sha256=PGcx1YQn6WoZ3yZGXbW0nF1gtDo1fC7KGnmFYaklR3s,1045
9
9
  bsb_arbor/devices/probe.py,sha256=Dv0GiWxNUuiKRYg8wCik2xlQLvh5dJBE4e-v3-W2eLg,1732
10
10
  bsb_arbor/devices/spike_recorder.py,sha256=xJ720Tg9EO71RIc54ZEN04UqUDNyyI5TliC1ZD5UHWc,1339
11
- bsb_arbor-6.0.2.dist-info/entry_points.txt,sha256=8z5oyflKGOBD2smUKyrUit-_2JqBs85g8rm5YOM8SYg,43
12
- bsb_arbor-6.0.2.dist-info/licenses/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
13
- bsb_arbor-6.0.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
14
- bsb_arbor-6.0.2.dist-info/METADATA,sha256=T2h3cwDnB2vJUKE6WanuWUkM_3Zw23-NvX85f-bGiKw,1347
15
- bsb_arbor-6.0.2.dist-info/RECORD,,
11
+ bsb_arbor-6.0.4.dist-info/entry_points.txt,sha256=8z5oyflKGOBD2smUKyrUit-_2JqBs85g8rm5YOM8SYg,43
12
+ bsb_arbor-6.0.4.dist-info/licenses/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
13
+ bsb_arbor-6.0.4.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
14
+ bsb_arbor-6.0.4.dist-info/METADATA,sha256=HwlIA4iHM5wHgodoK4FAZC9MTsZJS2reyrArgnY43wI,1347
15
+ bsb_arbor-6.0.4.dist-info/RECORD,,