bsb-neuron 4.2.0__tar.gz → 4.2.2__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,11 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bsb-neuron
3
- Version: 4.2.0
3
+ Version: 4.2.2
4
4
  Summary: NEURON simulator adapter for the BSB framework
5
5
  Author-email: Robin De Schepper <robingilbert.deschepper@unipv.it>
6
6
  Description-Content-Type: text/markdown
7
7
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
8
- Requires-Dist: bsb-core~=4.0
8
+ Requires-Dist: bsb-core~=5.0
9
9
  Requires-Dist: nrn-patch~=4.0
10
10
  Requires-Dist: arborize[neuron]~=4.1
11
11
  Requires-Dist: bsb-neuron[test] ; extra == "dev"
@@ -20,7 +20,7 @@ Requires-Dist: bsb-core[parallel] ; extra == "parallel"
20
20
  Requires-Dist: bsb-core[parallel] ; extra == "test"
21
21
  Requires-Dist: bsb-test~=4.0 ; extra == "test"
22
22
  Requires-Dist: coverage~=7.0 ; extra == "test"
23
- Requires-Dist: bsb-hdf5~=4.0 ; extra == "test"
23
+ Requires-Dist: bsb-hdf5~=5.0 ; extra == "test"
24
24
  Provides-Extra: dev
25
25
  Provides-Extra: parallel
26
26
  Provides-Extra: test
@@ -30,7 +30,7 @@ Provides-Extra: test
30
30
 
31
31
  # bsb-neuron
32
32
 
33
- bsb-neuron is a pluggin of [BSB](https://github.com/dbbs-lab/bsb) (see also
33
+ bsb-neuron is a plugin of the [BSB](https://github.com/dbbs-lab/bsb) (see also
34
34
  [bsb-core](https://github.com/dbbs-lab/bsb-core)).
35
35
  It contains the interfaces and tools to simulate BSB circuit with the
36
36
  [neuron simulator](https://www.neuron.yale.edu/neuron/).
@@ -3,7 +3,7 @@
3
3
 
4
4
  # bsb-neuron
5
5
 
6
- bsb-neuron is a pluggin of [BSB](https://github.com/dbbs-lab/bsb) (see also
6
+ bsb-neuron is a plugin of the [BSB](https://github.com/dbbs-lab/bsb) (see also
7
7
  [bsb-core](https://github.com/dbbs-lab/bsb-core)).
8
8
  It contains the interfaces and tools to simulate BSB circuit with the
9
9
  [neuron simulator](https://www.neuron.yale.edu/neuron/).
@@ -8,5 +8,5 @@ from . import devices
8
8
  from .adapter import NeuronAdapter
9
9
  from .simulation import NeuronSimulation
10
10
 
11
- __version__ = "4.2.0"
11
+ __version__ = "4.2.2"
12
12
  __plugin__ = SimulationBackendPlugin(Simulation=NeuronSimulation, Adapter=NeuronAdapter)
@@ -38,10 +38,10 @@ class NeuronResult(SimulationResult):
38
38
  v = p.record(obj)
39
39
 
40
40
  def flush(segment):
41
+ if "units" not in annotations.keys():
42
+ annotations["units"] = "mV"
41
43
  segment.analogsignals.append(
42
- AnalogSignal(
43
- list(v), units="mV", sampling_period=p.dt * ms, **annotations
44
- )
44
+ AnalogSignal(list(v), sampling_period=p.dt * ms, **annotations)
45
45
  )
46
46
 
47
47
  self.create_recorder(flush)
@@ -33,4 +33,4 @@ class CurrentClamp(NeuronDevice, classmap_entry="current_clamp"):
33
33
  clamp = location.section.iclamp(
34
34
  x=sx, delay=self.before, duration=self.duration, amplitude=self.amplitude
35
35
  )
36
- simdata.result.record(clamp._ref_i, **annotations)
36
+ simdata.result.record(clamp._ref_i, **annotations, units="nA")
@@ -30,4 +30,4 @@ class SynapseRecorder(NeuronDevice, classmap_entry="synapse_recorder"):
30
30
 
31
31
 
32
32
  def _record_synaptic_current(result, synapse, **annotations):
33
- result.record(synapse._pp._ref_i, **annotations)
33
+ result.record(synapse._pp._ref_i, **annotations, units="nA")
@@ -10,7 +10,7 @@ license = { file = "LICENSE" }
10
10
  classifiers = ["License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"]
11
11
  dynamic = ["version", "description"]
12
12
  dependencies = [
13
- "bsb-core~=4.0",
13
+ "bsb-core~=5.0",
14
14
  "nrn-patch~=4.0",
15
15
  "arborize[neuron]~=4.1"
16
16
  ]
@@ -27,7 +27,7 @@ test = [
27
27
  "bsb-core[parallel]",
28
28
  "bsb-test~=4.0",
29
29
  "coverage~=7.0",
30
- "bsb-hdf5~=4.0"
30
+ "bsb-hdf5~=5.0"
31
31
  ]
32
32
  dev = [
33
33
  "bsb-neuron[test]",
@@ -47,7 +47,7 @@ line-length = 90
47
47
  profile = "black"
48
48
 
49
49
  [tool.bumpversion]
50
- current_version = "4.2.0"
50
+ current_version = "4.2.2"
51
51
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
52
52
  serialize = ["{major}.{minor}.{patch}"]
53
53
  search = "{current_version}"
File without changes