-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from GillesPy2/develop
Release 1.3.2
- Loading branch information
Showing
36 changed files
with
327 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
version: "2" | ||
plugins: | ||
fixme: | ||
enabled: true | ||
config: | ||
strings: | ||
- FIXME | ||
- BUG | ||
- TODO | ||
markdownlint: | ||
enabled: false | ||
pep8: | ||
enabled: true | ||
radon: | ||
enabled: true | ||
checks: | ||
argument-count: | ||
enabled: false | ||
complex-logic: | ||
enabled: true | ||
file-lines: | ||
enabled: false | ||
method-complexity: | ||
enabled: true | ||
method-count: | ||
enabled: false | ||
method-lines: | ||
enabled: false | ||
nested-control-flow: | ||
enabled: false | ||
return-statements: | ||
enabled: true | ||
similar-code: | ||
enabled: false | ||
identical-code: | ||
enabled: false | ||
exclude_patterns: | ||
- "**/docs/" | ||
- "**/examples/" | ||
- "**/test/" | ||
- "**/*.ipynb/" | ||
- "**/*.sh" | ||
- "**/*.bat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
[run] | ||
omit = */.local/lib/python3.6/site-packages/numpy/* | ||
*/.local/lib/python3.6/site-packages/scipy/* | ||
omit = */.local/lib/python3.*/site-packages/numpy/* | ||
*/.local/lib/python3.*/site-packages/scipy/* | ||
*/.local/lib/python3.*/site-packages/Cython/* | ||
*/.local/lib/python3.*/site-packages/pyximport/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,4 @@ __pycache__ | |
.ipynb_checkpoints* | ||
.coverage | ||
htmlcov | ||
/build |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from gillespy2.core import Model, Species, Reaction, Parameter | ||
import numpy as np | ||
|
||
|
||
class Example(Model): | ||
""" | ||
This is a simple example for mass-action degradation of species S. | ||
""" | ||
|
||
def __init__(self, parameter_values=None): | ||
# Initialize the model. | ||
Model.__init__(self, name="Example") | ||
# Species | ||
S = Species(name='Sp', initial_value=100) | ||
self.add_species([S]) | ||
# Parameters | ||
k1 = Parameter(name='k1', expression=3.0) | ||
self.add_parameter([k1]) | ||
# Reactions | ||
rxn1 = Reaction(name='S degradation', reactants={S: 1}, products={}, rate=k1) | ||
self.add_reaction([rxn1]) | ||
self.timespan(np.linspace(0, 20, 101)) | ||
|
||
|
||
__all__ = ['Trichloroethylene', 'LacOperon', 'Schlogl', 'MichaelisMenten', | ||
'ToggleSwitch', 'Example', 'Tyson2StateOscillator', 'Oregonator'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.