reVeal.grid.get_method_from_members#
- get_method_from_members(method_name, members)[source]#
Helper function to look up a callable from a group of options.
- Parameters:
method_name (str) – Name of method to retrieve. Should use spaces where the desired callable uses underscores.
member (dict) – Dictionary where keys indicate method names and values are the corresponding callable function. Names used as keys should use underscores where the method_name uses spaces.
- Returns:
Callable – Method as a function.
- Raises:
NotImplementedError – A NotImplementedError will be raised if a function cannot be found corresponding to the input method_name.