7.1. Dataloader Interface
Shows how the mesh generation code may interact with the dataloaders. In operation, only get_hom_condition() and get_value() are needed realistically. Other methods are implemented in the abstractScalar and abstractVector dataloaders.
- class meshiphi.dataloaders.dataloader_interface.DataLoaderInterface
The interface through which the mesh operates on the dataloaders. Dataloaders store all data internally, and will retrieve aggregated values and homogeneity conditions when called.
- abstract get_hom_condition(bounds: Boundary, splitting_conds: dict)
Reads values within boundary to determine if data is homogeneous or heterogeneous. Return as str
- abstract get_value(bounds: Boundary, agg_type: str)
Reads values within boundary and returns aggregated value as a dictionary in the form {data_name (str): value (np.float64)}