mass.example_data
Module containing functions for loading various examples.
Package Contents
Functions
|
Return an example |
Print the example models that can be loaded. |
|
Print the example models that can be loaded. |
Attributes
list of recognized file extensions. |
|
The directory location of the pre-built |
|
The directory location of the pre-made |
- mass.example_data.FILE_EXTENSIONS = ['.xml', '.json'][source]
list of recognized file extensions.
- Type
- mass.example_data.create_example_model(model_name, io='json')[source]
Return an example
mass.MassModel
.- Parameters
model_name (str) – The name of the example model to load. Valid model names can be printed and viewed using the
view_example_models()
function.io (str
{'sbml', 'json'}
) – A string representing themass.io
module to use to load the model. Default is"sbml"
. Case sensitive.
- Returns
The loaded
MassModel
- Return type