foxes.core.get_engine(error=True, default=True)[source]

Gets the global calculation engine

Parameters

error: bool

Flag for raising ValueError if no engine is found

default: bool or dict or Engine

Set default engine if not set yet

Returns

engine: foxes.core.Engine

The foxes calculation engine