get_model_prop_caller

get_model_prop_caller#

get_model_prop_caller(model)[source]#

Return the ModelProps getter function for the given model type.

Parameters:
modelModelType

Case-insensitive model label. Valid values: 'mas', 'pot3d'.

Returns:
outCallable

The getter function associated with model — either get_mas_quantity_properties() or get_pot3d_quantity_properties().

Raises:
ValueError

If model is not a recognized model label.

See also

get_mas_quantity_properties

Getter for MAS model quantities.

get_pot3d_quantity_properties

Getter for POT3D model quantities.

Examples

>>> from psi_io.models import get_model_prop_caller
>>> caller = get_model_prop_caller('mas')
>>> caller('br').name
'br'