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

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

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


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

    Returns - checked product_dict
    -------
    
    """ #Employer assertions
product_dict