def __call_numpy()

in financial_functions/lambda_handlers.py [0:0]


def __call_numpy(method, args):
    """
    Call a NumPy method with a given set of arguments
    :param method: NumPy method to call
    :param args: Arguments for the provided NumPy method
    :return: Result from NumPy
    """
    logger.info("Calling numpy.{} with args: {}".format(method, args))
    return {'result': getattr(numpy, method)(*args)}