def getModel(tsinput):
    """
    This is the wrapper function for all profile models implemented in
    the runInput package.

    Parameters
    ----------
    tsinput :  :class:`.tsinput`
                A TurbSim input object.

    Returns
    -------
    profModel : A subclass of :class:`.profModelBase`
                The appropriately initialized 'profile model' object
                specified in `tsinput`.

    """
    # This executes the sub-wrapper function (defined below) specified
    # in the tsinput-object (input file WINDPROFILETYPE line)
    return eval('_' + tsinput['WindProfileType'].lower() + '(tsinput)')