bsb-arbor 4.0.0rc2__py2.py3-none-any.whl → 4.1.1__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/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)