atomistics.shared.import_warning.raise_warning#
- atomistics.shared.import_warning.raise_warning(module_list, import_error)[source]#
Issue a UserWarning when one or more optional module functions are unavailable.
- Parameters:
module_list (list[str]) – Names of the functions that could not be imported.
import_error (ImportError) – The import error that caused the unavailability.