runtraj.execution.get_backend#
- runtraj.execution.get_backend(name)[source]#
Return the backend name names.
name is a built-in backend (
BACKENDS, such asslurm) or the import path of aBackendsubclass, such asmypkg.backends.MyBackend, which is imported and made with no arguments.Examples
>>> get_backend("slurm").name 'slurm'
- Raises:
ValueError – If name is not a built-in backend and not an import path.
TypeError – If the class at the import path is not a
Backend.MissingClass – If name is an import path that cannot be imported on this machine.
- Return type:
Backend- Parameters:
name (str)