LION.utils.tomosipo_import¶
Import tomosipo / ts_algorithms only where CT functionality needs them.
LION’s non-CT parts (operators, models, FISTA, PnP, …) work without tomosipo and astra. CT functions import them through import_tomosipo, so that a missing installation gives a clear error at the point of use.
Functions
|
The module |
- LION.utils.tomosipo_import.import_tomosipo(module='tomosipo', feature='This CT function')[source]¶
The module
module(tomosipo,tomosipo.torch_supportorts_algorithms), imported, or an ImportError that says what is missing and how to install it (astra can also fail to load its libraries).feature: what needs it, for the message (e.g. “fdk”).