obspy.taup.utils._flat

_flat(list_or_tuple)[source]

Return a flat version of the input tuple. Intention is to avoid numpy single-item arrays with ndim >0. Reason being that newer numpy has deprecated automatic conversion to scalars from these types of arrays and this would result in errors in some future numpy releases. Seems like we rely on this automatic conversion to scalars a lot. This very likely could be done faster and more elegant, not sure if this is impacting execution speed of our taup routines.