fluidsim_core.loader
Utilities for loading and importing solvers
- fluidsim_core.loader.available_solvers(entrypoint_grp)[source]
Returns a dictionary of all registered solver modules registered as an entrypoint group. Each entrypoint would be a key-value pair - a solver short name and the full import path of the solver module respectively.
- Parameters:
- entrypoint_grp: str
The name of the entrypoint group listing the solvers.
- fluidsim_core.loader.import_module_solver(key, entrypoint_grp)[source]
Import the solver module.
- Parameters:
- key: str
The short name of a solver.
- entrypoint_grp: str
The name of the entrypoint group listing the solvers.
- fluidsim_core.loader.import_cls_simul(key, entrypoint_grp)[source]
Import the Simul class of a solver.
- Parameters:
- key: str
The short name of a solver.
- entrypoint_grp: str
The name of the entrypoint group listing the solvers.
Functions
|
Returns a dictionary of all registered solver modules registered as an entrypoint group. |
|
Import the Simul class of a solver. |
|
Import the solver module. |