smarts.core package

smarts.core

Core functionality of the SMARTS simulator

smarts.core.config(config_path: str = './smarts_engine.ini', environment_prefix='SMARTS') Config[source]

Get the SMARTS environment configuration for the smarts engine.

Note

This searches the following locations and loads the first one it finds: Supplied config_path. Default: ./smarts_engine.ini ~/.smarts/engine.ini /etc/smarts/engine.ini $PYTHON_PATH/smarts/engine.ini

Parameters:

config_path (str, optional) – The configurable location. Defaults to ./smarts_engine.ini.

Returns:

A configuration utility that allows resolving environment and engine.ini configuration.

Return type:

Config

smarts.core.current_seed()[source]

Get the last used seed.

smarts.core.gen_id()[source]

Generates a unique but deterministic id if smarts.core.seed has set the core seed.

smarts.core.seed(a)[source]

Seed common pseudo-random generators.