Commit 0f7b1ae0 authored by Félix Hartmann's avatar Félix Hartmann
Browse files

[docstrings]

parent dbe41816
......@@ -93,15 +93,26 @@ class BoundaryCondition(HasTraits):
values = None
def compute_values(self, start, stop, num):
"""Compute the values taken by the boundary condition during the
"""
Compute the values taken by the boundary condition during the
simulation.
Parameters
----------
start, stop and num: ints
Parameters for creating time points with Numpy's linspace function.
"""
X = np.linspace(start, stop, num)
return self.function.f(X)
def set_values(self, start, stop, num):
"""Set the values taken by the boundary condition during the
simulation.
"""
Set the values taken by the boundary condition during the simulation.
Parameters
----------
start, stop and num: ints
Parameters for creating time points with Numpy's linspace function.
"""
self.values = self.compute_values(start, stop, num)
......
......@@ -115,9 +115,8 @@ class Morphogen(HasTraits):
def __getitem__(self, key):
"""Make the object behave like a tuple.
This is an ingenious/atrocious hack so that a List trait of
DiffusiveSignal instances can be passed as 'name' argument of a
CheckListEditor.
This is an ingenious/atrocious hack so that a List trait of Morphogen
instances can be passed as 'name' argument of a CheckListEditor.
No longer used.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment