pastas.utils.validate_name ========================== .. py:function:: pastas.utils.validate_name(name: str, raise_error: bool = False) -> str Method to check user-provided names and log a warning if wrong. :param name: String with the name to check for illegal characters. :type name: str :param raise_error: raise ValueError if illegal character is found, default is False which only logs a warning. :type raise_error: bool :returns: **name** -- Unchanged name string. :rtype: str .. !! processed by numpydoc !!