PyDamp/PyDampCheck.py
def check_system_description(product_dict):
    
    
    """ This function checks for errors in the system decription input
    
    Parameters - YAML for product information .dict
    ----------

    Returns - checked product_dict
    -------
    
    """
    
    #System decription assertions
    System_Description = product_dict.get('System_Description','')
    assert System_Description, 'Input file requires system description'
    
    System_Description = product_dict.get('System_Description')
    assert type(System_Description) == str, 'Input file requires character input'
    
    try:
        int(product_dict.get('System_Description'))
        System_Description = int(product_dict.get('System_Description'))
        assert type(System_Description) == str, 'Input file requires character input'
        
    except ValueError:
        pass
 This function checks for errors in the system decription input
    
    Parameters - YAML for product information .dict
    ----------

    Returns - checked product_dict
    -------
    
    
This function checks for errors in the system decription input
Parameters - YAML for product information .dict


This function checks for errors in the system decription input Parameters - YAML for product information . dict
def check_system_description(product_dict):
    System_Description = product_dict.get('System_Description','')
    assert System_Description, 'Input file requires system description'
    System_Description = product_dict.get('System_Description')
    assert type(System_Description) == str, 'Input file requires character input'
    try:
        int(product_dict.get('System_Description'))
        System_Description = int(product_dict.get('System_Description'))
        assert type(System_Description) == str, 'Input file requires character input'
    except ValueError:
        pass
def check_system_description ( product_dict ) : System_Description = product_dict . get ( 'System_Description' , '' ) assert System_Description , 'Input file requires system description' System_Description = product_dict . get ( 'System_Description' ) assert type ( System_Description ) == str , 'Input file requires character input' try : int ( product_dict . get ( 'System_Description' ) ) System_Description = int ( product_dict . get ( 'System_Description' ) ) assert type ( System_Description ) == str , 'Input file requires character input' except ValueError : pass
This function checks for errors in the system decription input
Parameters - YAML for product information .dict
This function checks for errors in the system decription input Parameters - YAML for product information . dict
""" This function checks for errors in the system decription input
    
    Parameters - YAML for product information .dict
    ----------

    Returns - checked product_dict
    -------
    
    """ #System decription assertions
product_dict