get_model_prop_caller

get_model_prop_caller#

get_model_prop_caller(model)[source]#

Return the Props getter function for the given model type.

Parameters:
modelModelType

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

Returns:
outCallable

The getter function associated with model — one of get_mas_quantity_properties(), get_pot3d_quantity_properties(), or get_psi_scale_properties().

Raises:
ValueError

If model is not a recognized model label.

Examples

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