hamsci_psws.gen_lib.get_iterable

hamsci_psws.gen_lib.get_iterable(x)[source]

Guarantee that a variable is iterable.

If x is a single item, return it as a 1-element tuple. If x is already iterable, return x.