4.1.7 pde.backends.registry module

Defines base class of backends that implement computations.

class BackendRegistry[source]

Bases: object

Class handling all backends and their configurations.

add(backend)[source]

Add a loaded backend object.

This object can replace a previously registered python package.

Parameters:

backend (BackendBase) – Implementation of the backend

Return type:

None

register_package(name, package_path, *, config=None)[source]

Register a backend python package (without loading it yet)

Parameters:
  • name (str) – Name of the backend

  • package_path (str) – Import path for the package

  • config (list) – Configuration options for the package

Return type:

None

load_default_config(module_path)[source]

Load a default configuration from a module.

Parameters:

module_path (str) – String to the module to be loaded

Return type:

list[Parameter] | None

registered_backends()[source]

Returns all registered backends.

Return type:

list[str]