Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Félix Hartmann
XyDyS
Commits
0f7b1ae0
Commit
0f7b1ae0
authored
Jul 20, 2018
by
Félix Hartmann
Browse files
[docstrings]
parent
dbe41816
Changes
2
Hide whitespace changes
Inline
Side-by-side
boundarycondition.py
View file @
0f7b1ae0
...
...
@@ -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
)
...
...
morphogen.py
View file @
0f7b1ae0
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment