bsb-arbor 4.0.0__py2.py3-none-any.whl → 4.1.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-arbor might be problematic. Click here for more details.
- bsb_arbor/__init__.py +1 -1
- bsb_arbor/adapter.py +457 -443
- bsb_arbor/cell.py +81 -81
- bsb_arbor/connection.py +67 -67
- bsb_arbor/device.py +45 -45
- bsb_arbor/devices/__init__.py +3 -3
- bsb_arbor/devices/poisson_generator.py +26 -23
- bsb_arbor/devices/probe.py +55 -55
- bsb_arbor/devices/spike_recorder.py +43 -43
- bsb_arbor/simulation.py +23 -23
- {bsb_arbor-4.0.0.dist-info → bsb_arbor-4.1.0.dist-info}/LICENSE +619 -619
- bsb_arbor-4.1.0.dist-info/METADATA +37 -0
- bsb_arbor-4.1.0.dist-info/RECORD +15 -0
- bsb_arbor-4.0.0.dist-info/METADATA +0 -19
- bsb_arbor-4.0.0.dist-info/RECORD +0 -15
- {bsb_arbor-4.0.0.dist-info → bsb_arbor-4.1.0.dist-info}/WHEEL +0 -0
- {bsb_arbor-4.0.0.dist-info → bsb_arbor-4.1.0.dist-info}/entry_points.txt +0 -0
bsb_arbor/simulation.py
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import psutil
|
|
2
|
-
from bsb import Simulation, config, types
|
|
3
|
-
|
|
4
|
-
from .cell import ArborCell
|
|
5
|
-
from .connection import ArborConnection
|
|
6
|
-
from .device import ArborDevice
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@config.node
|
|
10
|
-
class ArborSimulation(Simulation):
|
|
11
|
-
resolution = config.attr(type=types.float(min=0.0), default=0.1)
|
|
12
|
-
profiling = config.attr(type=bool)
|
|
13
|
-
cell_models = config.dict(type=ArborCell, required=True)
|
|
14
|
-
connection_models = config.dict(type=ArborConnection, required=True)
|
|
15
|
-
devices = config.dict(type=ArborDevice, required=True)
|
|
16
|
-
|
|
17
|
-
@config.property(default=1)
|
|
18
|
-
def threads(self):
|
|
19
|
-
return self._threads
|
|
20
|
-
|
|
21
|
-
@threads.setter
|
|
22
|
-
def threads(self, value):
|
|
23
|
-
self._threads = value if value != "all" else psutil.cpu_count(logical=False)
|
|
1
|
+
import psutil
|
|
2
|
+
from bsb import Simulation, config, types
|
|
3
|
+
|
|
4
|
+
from .cell import ArborCell
|
|
5
|
+
from .connection import ArborConnection
|
|
6
|
+
from .device import ArborDevice
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@config.node
|
|
10
|
+
class ArborSimulation(Simulation):
|
|
11
|
+
resolution = config.attr(type=types.float(min=0.0), default=0.1)
|
|
12
|
+
profiling = config.attr(type=bool)
|
|
13
|
+
cell_models = config.dict(type=ArborCell, required=True)
|
|
14
|
+
connection_models = config.dict(type=ArborConnection, required=True)
|
|
15
|
+
devices = config.dict(type=ArborDevice, required=True)
|
|
16
|
+
|
|
17
|
+
@config.property(default=1)
|
|
18
|
+
def threads(self):
|
|
19
|
+
return self._threads
|
|
20
|
+
|
|
21
|
+
@threads.setter
|
|
22
|
+
def threads(self, value):
|
|
23
|
+
self._threads = value if value != "all" else psutil.cpu_count(logical=False)
|