LION.utilsΒΆ

Modules

citation

Citations of where LION's components come from (a model's paper, a solver's, a dataset's): each component's cite(cite_format="bib") returns its citation as text, BibTeX or MLA, or None if it has none.

common_primitives

device

The device LION uses when none is given.

environment

The record of the environment a model was saved in.

image_transforms

Image transforms in plain torch.

math

Utility math functions.

mrpro_import

Import mrpro only where MRI functionality needs it.

normaliser

parameter

paths

Where LION's data and results are: the LION_DATA_PATH and LION_RESULTS_PATH environment variables, read when a path is used.

rng

Random numbers that can be reproduced.

spec

Specs: a LION component written as the call that builds it, in JSON.

spyrit_import

Import spyrit only where its operators are needed.

tomosipo_import

Import tomosipo / ts_algorithms only where CT functionality needs them.

utils