bluecellulab 2.6.42__py3-none-any.whl → 2.6.43__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 bluecellulab might be problematic. Click here for more details.
- bluecellulab/analysis/inject_sequence.py +4 -4
- bluecellulab/cell/injector.py +1 -1
- bluecellulab/stimulus/factory.py +289 -361
- bluecellulab/stimulus/stimulus.py +782 -0
- {bluecellulab-2.6.42.dist-info → bluecellulab-2.6.43.dist-info}/METADATA +1 -1
- {bluecellulab-2.6.42.dist-info → bluecellulab-2.6.43.dist-info}/RECORD +10 -9
- {bluecellulab-2.6.42.dist-info → bluecellulab-2.6.43.dist-info}/WHEEL +1 -1
- {bluecellulab-2.6.42.dist-info → bluecellulab-2.6.43.dist-info}/AUTHORS.txt +0 -0
- {bluecellulab-2.6.42.dist-info → bluecellulab-2.6.43.dist-info}/LICENSE +0 -0
- {bluecellulab-2.6.42.dist-info → bluecellulab-2.6.43.dist-info}/top_level.txt +0 -0
|
@@ -30,7 +30,7 @@ class Recording(NamedTuple):
|
|
|
30
30
|
current: np.ndarray
|
|
31
31
|
voltage: np.ndarray
|
|
32
32
|
time: np.ndarray
|
|
33
|
-
spike: np.ndarray
|
|
33
|
+
spike: Optional[np.ndarray] = None
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
StimulusRecordings = Dict[str, Recording]
|
|
@@ -46,7 +46,7 @@ def run_stimulus(
|
|
|
46
46
|
recording_section: str = "soma[0]",
|
|
47
47
|
recording_segment: float = 0.5,
|
|
48
48
|
enable_spike_detection: bool = False,
|
|
49
|
-
threshold_spike_detection: float = -30,
|
|
49
|
+
threshold_spike_detection: float = -30.0,
|
|
50
50
|
) -> Recording:
|
|
51
51
|
"""Creates a cell from template parameters, applies a stimulus, and records
|
|
52
52
|
the response.
|
|
@@ -135,9 +135,9 @@ def apply_multiple_stimuli(
|
|
|
135
135
|
stimulus_name: StimulusName,
|
|
136
136
|
amplitudes: Sequence[float],
|
|
137
137
|
threshold_based: bool = True,
|
|
138
|
-
section_name: str
|
|
138
|
+
section_name: Optional[str] = None,
|
|
139
139
|
segment: float = 0.5,
|
|
140
|
-
n_processes: int
|
|
140
|
+
n_processes: Optional[int] = None,
|
|
141
141
|
cvode: bool = True,
|
|
142
142
|
add_hypamp: bool = True,
|
|
143
143
|
) -> StimulusRecordings:
|
bluecellulab/cell/injector.py
CHANGED
|
@@ -280,7 +280,7 @@ class InjectableMixin:
|
|
|
280
280
|
rng = neuron.h.Random()
|
|
281
281
|
rng.Random123(seed1, seed2, seed3)
|
|
282
282
|
else:
|
|
283
|
-
raise BluecellulabError("
|
|
283
|
+
raise BluecellulabError("Ornstein-Uhlenbeck noise stimulus requires Random123")
|
|
284
284
|
|
|
285
285
|
self.persistent.append(rng)
|
|
286
286
|
return rng
|