structs: IPython console widgets

Contains some structures used for the reconstruction configuration

class freeart.configuration.structs.DataStored(h5defaultPath=None, name=None, fileInfo=None, data=None)[source]

Define a simple sinogram for his data and his storage information

Parameters:
  • h5defaultPath (str) – the default location of this data inside a h5 file.
  • name – possible tag of the data.
  • fileInfo – information about file contained this data
  • data – the data
class freeart.configuration.structs.Sinogram(h5defaultPath=None, name=None, fileInfo=None, data=None)[source]

Sinogram class

class freeart.configuration.structs.I0Sinogram(fileInfo=None, data=None)[source]

I0 sinogram

I0_DATASET = 'data/I0'

Default location of the I0 sinogram in the .h5 file

class freeart.configuration.structs.TxSinogram(name=None, fileInfo=None, data=None)[source]

Transmission sinogram

TX_SINOGRAM_DATASET = 'data/sinogramTX'

Default location of the transmission sinogram in the .h5 file

class freeart.configuration.structs.FluoSino(name, fileInfo, physElmt, ef, selfAbsMat, data=None)[source]

Fluorescence sinogram

FLUO_DATASET = 'data/fluo_sinogram'

Default location of the fluorescence sinogram in the .h5 file

class freeart.configuration.structs.AbsMatrix(name=None, fileInfo=None, data=None)[source]

Absorption matrix class

ABS_MAT_INDEX = 'data/absmatrix/absm'

Default location of the absorption matrix in the .h5 file

class freeart.configuration.structs.SelfAbsMatrix(name=None, fileInfo=None, data=None)[source]

Self absorption matrix class

SELF_ABS_MAT_INDEX = 'data/selfabsmatrix/selfabsm'

Default location of the self absorption matrix in the .h5 file

class freeart.configuration.structs.MatComposition(name=None, fileInfo=None, data=None)[source]

Material /sample composition class

MAT_COMP_DATASET = 'data/materials/composition'

Default location of the sample composition in the .h5 file

class freeart.configuration.structs.MaterialsDic(name=None, fileInfo=None, data=None)[source]

Materials dictionary

MATERIALS_DICT = 'data/materials/matDict'

Default location of the materials dictionary in the .h5 file

class freeart.configuration.structs.Materials(materials=None, matComposition=None)[source]

Define a matrix with int values. Each value is associated with a fisx material

loadData()[source]
save()[source]

Save data using the information contained in the fileInfo

saveTo(file)[source]

Save data using the information contained in the fileInfo or file if invalid

class freeart.configuration.structs.Detector(x, y, z, width)[source]

Detector class

Parameters:
  • x (float) –
  • y (float) –
  • z (float) –
  • width (float) –