check_is_callable#
- pybrops.core.error.error_attr_python.check_is_callable(v, vname)[source]#
Subroutine to check whether a Python object is callable. If the object is not callable, raise an AttributeError with a custom error message.
- Parameters:
v (object) – Any Python object variable.
vname (str) – Name of the Python object variable.
- Return type:
None