Skip to content

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.

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.

get_hom_condition(bounds, splitting_conds) abstractmethod

Reads values within boundary to determine if data is homogeneous or heterogeneous. Return as str

get_value(bounds, agg_type) abstractmethod

Reads values within boundary and returns aggregated value as a dictionary in the form {data_name (str): value (np.float64)}