amici
Top-level module.
Functions
|
Import Python module of an AMICI model. |
Get the default root directory for AMICI models. |
|
|
Get the default directory for the model with the given ID. |
Exceptions
Error thrown if an AMICI model is loaded that is incompatible with the installed AMICI base package |
- exception amici.AmiciVersionError[source]
Error thrown if an AMICI model is loaded that is incompatible with the installed AMICI base package
- amici.get_model_dir(model_id=None, jax=False)[source]
Get the default directory for the model with the given ID.
- Parameters:
- Return type:
- Returns:
The model directory. This defaults to {root_dir}/{model_id}, where root_dir is determined via
get_model_root_dir(). If model_id is None, a temporary directory is created in {base_dir}/{amici_version} and returned.
- amici.get_model_root_dir()[source]
Get the default root directory for AMICI models.
Get the default root directory for AMICI models for the current AMICI version.
- Return type:
- Returns:
The model root directory. This defaults to {base_dir}/{amici_version}. If the environment variable AMICI_MODELS_ROOT is set, it is used as base_dir, otherwise amici_models in the current working directory.
- amici.import_model_module(module_name, module_path)[source]
Import Python module of an AMICI model.
- Parameters:
module_name (
str) – Name of the python package of the modelmodule_path (
pathlib.Path|str) – Absolute or relative path of the package directory
- Return type:
- Returns:
The model module