DataBlock
- class aixd.data.DataBlock(dobj_list: List[DataObject], name: str | None = None, format_file: str = 'pkl', flag_split_perdim: bool = False, transformation: DataBlockTransformation | None = None, display_name: str | None = None)[source]
Bases:
object
Generic block of data, i.e., a concatenation of different instances of data types
- Parameters:
dobj_list (List[DataObject]) – A list of data objects.
name (str, optional) – A name for the data block
format_file (str, optional, default=”pkl”) – File format used for storage.
flag_split_perdim (bool, optional, default=False) – Flag to enable the splitting multidimensional DataObject’s
transformation (DataBlockTransformation, optional, default=None) – The per data block normalization.
display_name (str, optional, default=None) – The display name of the data block. If none it’s the same as the name.
Methods
Checks the data consistency.
In this case, the attributes can be either names of dimensions, or names of full data objects, and we need to return the precise column names that correspond to the attributes.
Returns the data belonging to the requested DataObject's, as a single data matrix.
Returns the data types of the columns of the data matrix for the requested DataObject's.
Returns the data belonging to the requested DataObject's, as a list of data matrices.
Returns the data objects.
Returns information of all the DataObject's of the DataBlock.
Prints the names of the DataObject's.
Prints the applied transformations for the DataBlock.
Internal function for saving.
Updates the DataObject instance according to the passed data (e.g., changing its domain or type)
Updates the position and position_index attributes of the DataObject's.
Internal function for writing.