Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 56265ea

Browse files
author
Jaquier Aurélien Tristan
committed
rename neuron->NEURON in evaluator docstring
1 parent 5a2c4a7 commit 56265ea

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

bluepyopt/ephys/evaluators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ def evaluate_with_lists(self, param_list=None, target='scores'):
219219
def set_neuron_variables_and_evaluate_with_lists(
220220
self, param_list=None, target='scores'
221221
):
222-
"""Set neuron variables and run evaluation with lists.
222+
"""Set NEURON variables and run evaluation with lists.
223223
224-
Setting the neuron variables is necessary when using ipyparallel,
225-
since the new subprocesses have pristine neuron.
224+
Setting the NEURON variables is necessary when using ipyparallel,
225+
since the new subprocesses have pristine NEURON.
226226
"""
227227
self.sim.set_neuron_variables()
228228
return self.evaluate_with_lists(param_list=param_list, target=target)

bluepyopt/ephys/protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _reduce_method(meth):
248248
import multiprocessing
249249

250250
# Default context for python>=3.8 on macos is spawn.
251-
# Spwan context would reset neuron properties, such as dt.
251+
# Spwan context would reset NEURON properties, such as dt.
252252
multiprocessing_context = multiprocessing.get_context('fork')
253253

254254
if timeout is not None:

bluepyopt/ephys/simulators.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def __init__(self, dt=None, cvode_active=True, cvode_minstep=None,
2121
"""Constructor
2222
2323
Args:
24-
dt (float): the integration time step used by neuron.
25-
cvode_active (bool): should neuron use the variable time step
24+
dt (float): the integration time step used by Neuron.
25+
cvode_active (bool): should Neuron use the variable time step
2626
integration method
2727
cvode_minstep (float): the minimum time step allowed for a cvode
2828
step. Default is 0.0.
@@ -89,7 +89,7 @@ def _nrn_disable_banner():
8989
# pylint: disable=R0201
9090
@property
9191
def neuron(self):
92-
"""Return neuron module"""
92+
"""Return Neuron module"""
9393

9494
if self.disable_banner and not self.banner_disabled:
9595
NrnSimulator._nrn_disable_banner()
@@ -105,7 +105,7 @@ def neuron(self):
105105
return neuron
106106

107107
def set_neuron_variables(self):
108-
"""Set neuron variables"""
108+
"""Set Neuron variables"""
109109
self.neuron.h.load_file('stdrun.hoc')
110110
self.neuron.h.dt = self.dt
111111
self.neuron.h.cvode_active(1 if self.cvode_active else 0)

0 commit comments

Comments
 (0)