Random Hdf5 Loader¶
Description¶
A hdf5 dataset of a specified size is created at runtime using numpy random sampling (numpy.random) and saved to file. This created dataset will be used as the input file, and the input file path passed to Savu will be ignored (use a dummy).
Parameters
preview:
visibility: basic
dtype: preview
description: A slice list of required frames.
default: "[]"
size:
visibility: basic
dtype: "[list[float], list[]]"
description: A list specifiying the required data size.
default: "[]"
axis_labels:
visibility: basic
dtype: "[list[],list[str]]"
description: "A list of the axis labels to be associated with each dimension, of the form ['name1.unit1', 'name2.unit2',...]"
default: "[]"
patterns:
visibility: basic
dtype: "[list[],list[str]]"
description: "A list of data access patterns e.g. [SINOGRAM.0c.1s.2c, PROJECTION.0s.1c.2s], where 'c' and 's' represent core and slice dimensions respectively and every dimension must be specified."
default: "[]"
file_name:
visibility: intermediate
dtype: str
description: Assign a name to the created h5 file.
default: input_array
dtype_:
visibility: intermediate
dtype: nptype
description: A numpy array data type
default: int16
dataset_name:
visibility: intermediate
dtype: str
description: The name assigned to the dataset
default: tomo
angles:
visibility: intermediate
dtype: "[None,str,int]"
description: "A python statement to be evaluated or a file - if the value is None, values will be in the interval [0, 180]"
default: None
pattern:
visibility: intermediate
dtype: "[None,str]"
description: Pattern used to create and store the hdf5 dataset default is the first pattern in the pattern dictionary.
default: None
range:
visibility: intermediate
dtype: "list[float,float]"
description: Set the distribution interval.
default: "[1, 10]"
Key
visibility: The visibility level of the parameter
dtype: The type of data
description: A short explanation of the parameter
default: The default value
options: A list of permitted values
dependency: The name of the parameter and value which this parameter depends upon
range: A guide for the range of the parameter
Citations
No citations