PyDamp/PyDampCheck.py
def check_user_name(product_dict):
    
    
    """ This function seperates the User input section of the YAML and checks for errors
    
    Parameters - YAML for product information .dict
    ----------

    Returns - checked product_dict
    -------
    
    """
    
    #User name assertions
    User_Name = product_dict.get('User_Name','')
    assert User_Name, 'Input file requires user name'
    
    User_Name = product_dict.get('User_Name')
    assert type(User_Name) == str, 'Input file requires character input'
    
    try:
        int(product_dict.get('User_Name'))
        User_Name = int(product_dict.get('User_Name'))
        assert type(User_Name) == str, 'Input file requires character input'
        
    except ValueError:
            pass
 This function seperates the User input section of the YAML and checks for errors
    
    Parameters - YAML for product information .dict
    ----------

    Returns - checked product_dict
    -------
    
    
This function seperates the User input section of the YAML and checks for errors
Parameters - YAML for product information .dict


This function seperates the User input section of the YAML and checks for errors Parameters - YAML for product information . dict
def check_user_name(product_dict):
    User_Name = product_dict.get('User_Name','')
    assert User_Name, 'Input file requires user name'
    User_Name = product_dict.get('User_Name')
    assert type(User_Name) == str, 'Input file requires character input'
    try:
        int(product_dict.get('User_Name'))
        User_Name = int(product_dict.get('User_Name'))
        assert type(User_Name) == str, 'Input file requires character input'
    except ValueError:
            pass
def check_user_name ( product_dict ) : User_Name = product_dict . get ( 'User_Name' , '' ) assert User_Name , 'Input file requires user name' User_Name = product_dict . get ( 'User_Name' ) assert type ( User_Name ) == str , 'Input file requires character input' try : int ( product_dict . get ( 'User_Name' ) ) User_Name = int ( product_dict . get ( 'User_Name' ) ) assert type ( User_Name ) == str , 'Input file requires character input' except ValueError : pass
This function seperates the User input section of the YAML and checks for errors
Parameters - YAML for product information .dict
This function seperates the User input section of the YAML and checks for errors Parameters - YAML for product information . dict
""" This function seperates the User input section of the YAML and checks for errors
    
    Parameters - YAML for product information .dict
    ----------

    Returns - checked product_dict
    -------
    
    """ #User name assertions
product_dict