bsb-arbor 6.0.3__tar.gz → 6.0.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bsb-arbor
3
- Version: 6.0.3
3
+ Version: 6.0.5
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
@@ -204,7 +204,9 @@ class Population:
204
204
  start = i
205
205
  stop = i + 1
206
206
  prev = i
207
+ ranges.append((start, stop))
207
208
  pop._ranges = ranges
209
+
208
210
  return pop
209
211
 
210
212
  def _subpop_one(self, item):
@@ -524,7 +526,7 @@ class ArborAdapter(SimulatorAdapter):
524
526
 
525
527
  def _all_bools(arr):
526
528
  try:
527
- return all(isinstance(b, bool) for b in arr)
529
+ return all(np.issubdtype(type(b), np.bool_) for b in arr)
528
530
  except TypeError:
529
531
  # Not iterable
530
532
  return False
@@ -532,7 +534,7 @@ def _all_bools(arr):
532
534
 
533
535
  def _all_ints(arr):
534
536
  try:
535
- return all(isinstance(b, int) for b in arr)
537
+ return all(np.issubdtype(type(b), np.integer) for b in arr)
536
538
  except TypeError:
537
539
  # Not iterable
538
540
  return False
@@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"
6
6
 
7
7
  [project]
8
8
  name = "bsb-arbor"
9
- version = "6.0.3"
9
+ version = "6.0.5"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.10,<4"
12
12
  dynamic = [ "description" ]
File without changes
File without changes
File without changes
File without changes