sidpy.base.string_utils.validate_string_args

sidpy.base.string_utils.validate_string_args(arg_list, arg_names)[source]

This function is to be used when validating string parameters for a function. Trims the provided strings. Errors in the strings will result in Exceptions

Parameters:
  • arg_list (array-like) – List of str objects that signify the value for a position argument in a function

  • arg_names (array-like) – List of str objects with the names of the corresponding parameters in the function

Returns:

List of str objects that signify the value for a position argument in a function with spaces on ends removed

Return type:

array-like