7.1.2.1.1.1.2. intro_to_wc_modeling.concepts_skills.software_engineering.unit_testing package¶
7.1.2.1.1.1.2.1. Submodules¶
7.1.2.1.1.1.2.2. intro_to_wc_modeling.concepts_skills.software_engineering.unit_testing.__main__ module¶
Example command line program
- Author
Jonathan Karr <jonrkarr@gmail.com>
- Date
2017-05-12
- Copyright
2017, Karr Lab
- License
MIT
-
class
intro_to_wc_modeling.concepts_skills.software_engineering.unit_testing.__main__.
App
(label=None, **kw)[source]¶ Bases:
cement.core.foundation.App
7.1.2.1.1.1.2.3. intro_to_wc_modeling.concepts_skills.software_engineering.unit_testing.core module¶
Example python code
- Author
Jonathan Karr <jonrkarr@gmail.com>
- Date
2017-05-12
- Copyright
2017, Karr Lab
- License
MIT
-
class
intro_to_wc_modeling.concepts_skills.software_engineering.unit_testing.core.
Simulation
(k_syn=1.0, k_deg=1.0, verbose=False)[source]¶ Bases:
object
Simulates the synthesis and degradation of a species
-
run
(value_init=5, time_max=10)[source]¶ Runs a simulation for time_max seconds starting with value_init molecules
- Parameters
value_init (
float
, optional) – initial number of speciestime_max (
int
, optional) – simulation length in s
- Returns
simulated trajectory
- Return type
- Raises
ValueError – if
time_max
is negative
-