-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a31861
commit d731f43
Showing
6 changed files
with
64 additions
and
5,894 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
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,39 @@ | ||
import abc | ||
from process_bigraph import Step | ||
|
||
|
||
class OdeSimulation(Step, abc.ABC): | ||
config_schema = { | ||
'sbml_filepath': 'string', | ||
'n_steps': 'integer', | ||
'step_size': 'float', | ||
'duration': { | ||
'_type': 'string', | ||
'_default': 10} | ||
} | ||
|
||
def __init__(self, config=None, core=None): | ||
super().__init__(config, core) | ||
|
||
@abc.abstractmethod | ||
def inputs(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
def outputs(self): | ||
pass | ||
|
||
def update(self, inputs): | ||
pass | ||
|
||
@abc.abstractmethod | ||
def set_species_list(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
def set_global_parameters(self): | ||
pass | ||
|
||
@abc.abstractmethod | ||
def set_reactions(self): | ||
pass |
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