Additional ASTRA methods: the astra module

astra.astra.credits()[source]

Print credits of the ASTRA Toolbox.

astra.astra.delete(ids)[source]

Delete an astra object.

Parameters:

ids (int or list) – ID or list of ID’s to delete.

astra.astra.get_gpu_info(idx=-1)[source]

Get GPU info.

Parameters:

idx (int) – GPU index, or -1 for current device

Returns:

str – GPU info

astra.astra.has_feature(feature)[source]

Check a feature flag.

These are used to check if certain functionality has been enabled at compile time, if new functionality is present, or if a backward-incompatible change is present.

See include/astra/Features.h for a list.

Parameters:

feature (str) – The name of the feature

Returns:

bool – The presence of the feature

astra.astra.info(ids)[source]

Print info about an astra object.

Parameters:

ids (int or list) – ID or list of ID’s to show.

astra.astra.set_gpu_index(idx, memory=0)[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.