Additional ASTRA methods: the astra module

astra.astra.credits()[source]

Print credits of the ASTRA Toolbox.

astra.astra.set_gpu_index(idx)[source]

Set default GPU index to use.

Parameters:idx (int) – GPU index
astra.astra.use_cuda()[source]

Test if CUDA is enabled.

Returns:boolTrue if CUDA is enabled.
astra.astra.version(printToScreen=False)[source]

Check version of the ASTRA Toolbox.

Parameters:printToScreen (bool) – If True, print version string. If False, return version integer.
Returns:string or int – The version string or integer.