assert_2D_numpy_array#
- PySeismoSoil.helper_generic.assert_2D_numpy_array(something: Any, name: str | None = None) None [source]#
Assert that
something
is a 2D 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 – When
something
is not a 2D numpy array