require_package
#
- biotite.interface.openmm.require_package(package)#
Check if the given package is installed and raise an exception if not.
- Parameters:
- packagestr
The name of the package to be checked.
- Raises:
- ImportError
If the package is not installed.
Notes
It is useful to call this function in the
__init__.py
of eachinterface
subpackage, to obtain clear error messages about missing dependencies.