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

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

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


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

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