def _call_analysis_function(options, module):
    """
    Call function from module and get result, using inputs from options

    Parameters
    ----------
    options : dict
        Option names and values for analysis
    module : str
        Short name of module within macroeco containing analysis function

    Returns
    -------
    dataframe, array, value, list of tuples
        Functions from emp module return a list of tuples in which first
        element of the tuple gives a string describing the result and the
        second element giving the result of the analysis as a dataframe.
        Functions in other modules return dataframe, array, or value.

    """

    args, kwargs = _get_args_kwargs(options, module)
    return eval("%s.%s(*args, **kwargs)" % (module, options['analysis']))
Call function from module and get result, using inputs from options

    Parameters
    ----------
    options : dict
        Option names and values for analysis
    module : str
        Short name of module within macroeco containing analysis function

    Returns
    -------
    dataframe, array, value, list of tuples
        Functions from emp module return a list of tuples in which first
        element of the tuple gives a string describing the result and the
        second element giving the result of the analysis as a dataframe.
        Functions in other modules return dataframe, array, or value.