gw.domains.build_domain.build_domain_from_model_metadata

gw.domains.build_domain.build_domain_from_model_metadata(
    model_metadata,
    base=False,
)

Instantiate a domain class from settings of model.

Parameters

Name Type Description Default
model_metadata dict model metadata containing information to build the domain typically obtained from the model.metadata attribute required
base bool If base=True, return domain.base_domain if this is an attribute of domain, else return domain. Example: MultibandedFrequencyDomain has a UniformFrequencyDomain object as a base_domain. In dingo_pipe, we want to load data in the base_domain, and later decimate from base_domain to domain. False

Returns

Name Type Description
A Domain instance of the correct type.