check_iterable#

astropop.py_utils.check_iterable(value)#

check_iterable is deprecated! This function will be removed 1.0. Use np.isscalar.

Check if a value is iterable (list), but not a string.

The checking process is done by trying the iter method of Python and matching if the value is a string or not.

Parameters:
value: any

Value to be checked if it is iterable.

Returns:
bool:

True if the value is iterable and not a string. False otherwise.