bluecellulab 2.6.16__py3-none-any.whl → 2.6.17__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 +6 -2
- {bluecellulab-2.6.16.dist-info → bluecellulab-2.6.17.dist-info}/METADATA +1 -1
- {bluecellulab-2.6.16.dist-info → bluecellulab-2.6.17.dist-info}/RECORD +7 -7
- {bluecellulab-2.6.16.dist-info → bluecellulab-2.6.17.dist-info}/WHEEL +1 -1
- {bluecellulab-2.6.16.dist-info → bluecellulab-2.6.17.dist-info}/AUTHORS.txt +0 -0
- {bluecellulab-2.6.16.dist-info → bluecellulab-2.6.17.dist-info}/LICENSE +0 -0
- {bluecellulab-2.6.16.dist-info → bluecellulab-2.6.17.dist-info}/top_level.txt +0 -0
|
@@ -37,6 +37,7 @@ def run_stimulus(
|
|
|
37
37
|
stimulus: Stimulus,
|
|
38
38
|
section: str,
|
|
39
39
|
segment: float,
|
|
40
|
+
cvode: bool = True,
|
|
40
41
|
) -> Recording:
|
|
41
42
|
"""Creates a cell and stimulates it with a given stimulus.
|
|
42
43
|
|
|
@@ -45,6 +46,7 @@ def run_stimulus(
|
|
|
45
46
|
stimulus: The input stimulus to inject into the cell.
|
|
46
47
|
section: Name of the section of cell where the stimulus is to be injected.
|
|
47
48
|
segment: The segment of the section where the stimulus is to be injected.
|
|
49
|
+
cvode: True to use variable time-steps. False for fixed time-steps.
|
|
48
50
|
|
|
49
51
|
Returns:
|
|
50
52
|
The voltage-time recording at the specified location.
|
|
@@ -61,7 +63,7 @@ def run_stimulus(
|
|
|
61
63
|
current_vector = neuron.h.Vector()
|
|
62
64
|
current_vector.record(iclamp._ref_i)
|
|
63
65
|
simulation = Simulation(cell)
|
|
64
|
-
simulation.run(stimulus.stimulus_time)
|
|
66
|
+
simulation.run(stimulus.stimulus_time, cvode=cvode)
|
|
65
67
|
current = np.array(current_vector.to_python())
|
|
66
68
|
voltage = cell.get_voltage_recording(neuron_section, segment)
|
|
67
69
|
time = cell.get_time()
|
|
@@ -78,6 +80,7 @@ def apply_multiple_stimuli(
|
|
|
78
80
|
section_name: str | None = None,
|
|
79
81
|
segment: float = 0.5,
|
|
80
82
|
n_processes: int | None = None,
|
|
83
|
+
cvode: bool = True,
|
|
81
84
|
) -> StimulusRecordings:
|
|
82
85
|
"""Apply multiple stimuli to the cell on isolated processes.
|
|
83
86
|
|
|
@@ -91,6 +94,7 @@ def apply_multiple_stimuli(
|
|
|
91
94
|
If None, the stimuli are applied at the soma[0] of the cell.
|
|
92
95
|
segment: The segment of the section where the stimuli are applied.
|
|
93
96
|
n_processes: The number of processes to use for running the stimuli.
|
|
97
|
+
cvode: True to use variable time-steps. False for fixed time-steps.
|
|
94
98
|
|
|
95
99
|
Returns:
|
|
96
100
|
A dictionary where the keys are the names of the stimuli and the values
|
|
@@ -140,7 +144,7 @@ def apply_multiple_stimuli(
|
|
|
140
144
|
else:
|
|
141
145
|
raise ValueError("Unknown stimulus name.")
|
|
142
146
|
|
|
143
|
-
task_args.append((cell.template_params, stimulus, section_name, segment))
|
|
147
|
+
task_args.append((cell.template_params, stimulus, section_name, segment, cvode))
|
|
144
148
|
|
|
145
149
|
with IsolatedProcess(processes=n_processes) as pool:
|
|
146
150
|
# Map expects a function and a list of argument tuples
|
|
@@ -15,7 +15,7 @@ bluecellulab/type_aliases.py,sha256=DvgjERv2Ztdw_sW63JrZTQGpJ0x5uMTFB5hcBHDb0WA,
|
|
|
15
15
|
bluecellulab/utils.py,sha256=SbOOkzw1YGjCKV3qOw0zpabNEy7V9BRtgMLsQJiFRq4,1526
|
|
16
16
|
bluecellulab/verbosity.py,sha256=T0IgX7DrRo19faxrT4Xzb27gqxzoILQ8FzYKxvUeaPM,1342
|
|
17
17
|
bluecellulab/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
-
bluecellulab/analysis/inject_sequence.py,sha256=
|
|
18
|
+
bluecellulab/analysis/inject_sequence.py,sha256=6_OuUtUjmSvhCj5_mX-8ZnUpv5jXUHHYDYPUcV2m0eE,5958
|
|
19
19
|
bluecellulab/cell/__init__.py,sha256=Sbc0QOsJ8E7tSwf3q7fsXuE_SevBN6ZmoCVyyU5zfII,208
|
|
20
20
|
bluecellulab/cell/cell_dict.py,sha256=PVmZsjhZ9jp3HC-8QmdFqp-crAcVMSVeLWujcOPLlpo,1346
|
|
21
21
|
bluecellulab/cell/core.py,sha256=2UtXXd4FA2X5A_7ljjbN4yobpMWD2FWfux67ZFND2rI,31315
|
|
@@ -62,9 +62,9 @@ bluecellulab/stimulus/factory.py,sha256=XDbnqCuMCh1RdZLKvlRucMj3wkXDqy6mEda_Oh6Y
|
|
|
62
62
|
bluecellulab/synapse/__init__.py,sha256=RW8XoAMXOvK7OG1nHl_q8jSEKLj9ZN4oWf2nY9HAwuk,192
|
|
63
63
|
bluecellulab/synapse/synapse_factory.py,sha256=3y15LlaBoNJiU2KUeTkh70pyU5OYf6xQIMSBmmMPMak,6987
|
|
64
64
|
bluecellulab/synapse/synapse_types.py,sha256=4gne-hve2vq1Lau-LAVPsfLjffVYqAYBW3kCfC7_600,16871
|
|
65
|
-
bluecellulab-2.6.
|
|
66
|
-
bluecellulab-2.6.
|
|
67
|
-
bluecellulab-2.6.
|
|
68
|
-
bluecellulab-2.6.
|
|
69
|
-
bluecellulab-2.6.
|
|
70
|
-
bluecellulab-2.6.
|
|
65
|
+
bluecellulab-2.6.17.dist-info/AUTHORS.txt,sha256=EDs3H-2HXBojbma10psixk3C2rFiOCTIREi2ZAbXYNQ,179
|
|
66
|
+
bluecellulab-2.6.17.dist-info/LICENSE,sha256=xOouu1gC1GGklDxkITlaVl60I9Ab860O-nZsFbWydvU,11749
|
|
67
|
+
bluecellulab-2.6.17.dist-info/METADATA,sha256=mk1GlOKidaxD1TWN0ESwwmh8wBtYtrrzNFj7_-iGtv0,7054
|
|
68
|
+
bluecellulab-2.6.17.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
69
|
+
bluecellulab-2.6.17.dist-info/top_level.txt,sha256=VSyEP8w9l3pXdRkyP_goeMwiNA8KWwitfAqUkveJkdQ,13
|
|
70
|
+
bluecellulab-2.6.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|