himalaya.backend.set_backend

himalaya.backend.set_backend(backend, on_error='raise')[source]

Set the backend using a global variable, and return the backend module.

Parameters
backendstr or module

Name or module of the backend.

on_errorstr in {“raise”, “warn”}

Define what is done if the backend fails to be loaded. If “warn”, this function only warns, and keeps the previous backend. If “raise”, this function raises on errors.

Returns
modulepython module

Module of the backend.