assert_1D_numpy_array#
- PySeismoSoil.helper_generic.assert_1D_numpy_array(something: Any, name: str | None = None) None [source]#
Assert that
something
is a 1D numpy array- Parameters:
something (Any) – Any Python object.
name (str | None) – The name of
something
to be displayed in the potential error message.
- Raises:
TypeError –
something
is not a 1D numpy array