pastas.utils.validate_name# validate_name(name, raise_error=False)[source]# Method to check user-provided names and log a warning if wrong. Parameters: name (str) – String with the name to check for illegal characters. raise_error (bool) – raise Exception error if illegal character is found, default is False which only logs a warning. Returns: name – Unchanged name string. Return type: str