bluecellulab 2.6.41__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.

@@ -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 | None
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 | None = None,
138
+ section_name: Optional[str] = None,
139
139
  segment: float = 0.5,
140
- n_processes: int | None = None,
140
+ n_processes: Optional[int] = None,
141
141
  cvode: bool = True,
142
142
  add_hypamp: bool = True,
143
143
  ) -> StimulusRecordings:
@@ -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("Shot noise stimulus requires Random123")
283
+ raise BluecellulabError("Ornstein-Uhlenbeck noise stimulus requires Random123")
284
284
 
285
285
  self.persistent.append(rng)
286
286
  return rng