is_indexable_iterable#

cosmicjellyfish.likelihood.base.is_indexable_iterable(var)[source]#

Check if a variable is an indexable iterable.

Parameters:

var (Any) – The variable to check

Returns:

True if the variable is an indexable iterable (list, numpy array, or Sequence)

and not a string or bytes object, False otherwise.

Return type:

bool