check_is_iterable#
- pybrops.core.error.error_attr_python.check_is_iterable(v, vname)[source]#
Subroutine to check whether a Python object is iterable. If the object is not iterable, 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