mantidimaging.core.utility.optional_imports module

A place for availability checking and import logic for optional dependencies to live.

mantidimaging.core.utility.optional_imports.check_availability(name)[source]
mantidimaging.core.utility.optional_imports.safe_import(name)[source]

Try to import an optional library that may not be present.

Will fail gracefully by returning None if the library is not available.

mantidimaging.core.utility.optional_imports.tomopy_available()[source]