fileInfo
: classes to know where to save / load data
Contains the fileInfo classes. They allow the definition of information
to retrieve data from .h5 and .edf files
-
class
freeart.configuration.fileInfo.
MatrixFileInfo
(filePath=None, location=None)[source]
class defining potential information for a file sinogram contained in
a file. And a load function to retrieve the data associated with this
information
Parameters: |
- filePath (str) – file path
- location (str) – location of the dataset in the file
|
-
getFile
()[source]
Returns: | the file location |
Return type: | str |
-
load
(refFile)[source]
load the data. First from the file set. If None register in infoFile
then it will use the reffile.
Parameters: | refFile – needed for the H5MatrixFileInfo which the file
containing the reconstruction parameters. Bad design
but no time to do better |
Returns: | the data contained |
-
class
freeart.configuration.fileInfo.
EDFMatrixFileInfo
(filePath, index=0)[source]
FileInfo for edf file
-
load
(refFile)[source]
load the data. First from the file set. If None register in infoFile
then it will use the reffile.
Parameters: | refFile – needed for the H5MatrixFileInfo which the file
containing the reconstruction parameters. Bad design
but no time to do better |
Returns: | the data contained |
-
class
freeart.configuration.fileInfo.
H5MatrixFileInfo
(filePath)[source]
FileInfo for hdf5 file
-
load
(refFile)[source]
load the data. First from the file set. If None register in infoFile
then it will use the reffile.
Parameters: | refFile – needed for the H5MatrixFileInfo which the file
containing the reconstruction parameters. Bad design
but no time to do better |
Returns: | the data contained |