check_str_value#

pybrops.core.error.error_value_python.check_str_value(v, vname, *args)[source]#

Check if a string has an accepted value:

Parameters:
  • v (str) – Input string.

  • vname (str) – Name of the variable for the string.

  • args (tuple) – Acceptable values for the string.

Return type:

None