looks_flat
- PlasmaCalcs.tools.arrays.looks_flat(x)
returns whether x looks flat, i.e. looks like an iterable with no internal layers.
Only checks x[0]. (If x is not iterable, raise TypeError. If len(x)==0, return True).Note: might behave unexpectedly for strings.