check_Vs_profile_format#

PySeismoSoil.helper_generic.check_Vs_profile_format(data: Any) → None[source]#

Check that data is in a valid format as a Vs profile.

A valid Vs profile is a 2D numpy array with two or five columns, non-negative or positive values, etc.

Parameters:

data (Any) – Any Python object.

Raises:
  • TypeError – When the input has unexpected type

  • ValueError – When the input has unexpected value