config: define classes containing needed information to run reconstructions

Contains the python representation of the reconstruction parameters

class freeart.configuration.config.TxConfig(sinograms=None, computeLog=True, *var, **kw)[source]

Note

Need to get a differentiation between TxConfig and this class because tomogui has also to deal with the FBP… and won’t have the log option and maybe others

class freeart.configuration.config.FluoConfig(outBeamCalMethod=0, sinoI0=None, absMat=None, isAbsMatASinogram=False, detector=None, materials=None, sinograms=None, e0=1, *var, **kw)[source]

configuration to build fluorescence or compton reconstruction algorithm

toDict()[source]

Convert the configuration to a silx ConfigDict

setFileInfoToH5File(refFile, save=False)[source]

Change all the fileInfo to point ot the given h5 file

Parameters:
  • refFile – the h5 file to store information
  • save – if true once the file info updated, save the dataset
freeart.configuration.config.retrieveInfoFile(file, index)[source]

Simple function to get the adapted infoFile from a file and an index

Parameters:
  • file – the file storing the data
  • index – int or str location of the data in the file