Beispiel #1
0
def test_miniTopSim():
    '''
    this test is testing the miniTopSim.py script
    the test is checking of the generate srf file has equal values to the srf_save file
    for verfing the test the methode distance() of surface.py is used
    '''
    distance_measure = 0.720801905617422
    simulation(os.path.join(filedir,'etch_dx1.cfg'))
    surface1 = Surface(filename = os.path.join(filedir,'etch_dx1.srf'))
    surface2 = Surface(filename = os.path.join(filedir,'etch_dx0.125.srf_save'))
    distance = surface1.distance(surface2)
    assert distance  < (distance_measure/2)
Beispiel #2
0
def test_cosine_vert():
    '''
    this test is testing the miniTopSim.py script
    the test is checking of the generate srf file has equal values to the srf_save file
    for verfing the test the methode distance() of surface.py is used
    '''
    distance_measure = 2.3
    simulation(os.path.join(filedir, 'cosine_vert_1.cfg'))
    surface1 = Surface(filename=os.path.join(filedir, 'cosine_vert_1.srf'))
    surface2 = Surface(
        filename=os.path.join(filedir, 'cosine_vert_05.srf_save'))
    distance = surface1.distance(surface2)
    assert distance < (distance_measure / 2)
Beispiel #3
0
def test_erf():
    """
    Test if last surface of .srf file is equal to last surface of .srf_save file

    :var distance_measure:  maximum allowed difference between the two surfaces
    :var distance:          actual difference between the two surfaces
    """

    distance_measure = 1e-5

    simulation(os.path.join(filedir, 'erf.cfg'))
    surface1 = Surface(filename=os.path.join(filedir, 'erf.srf'))
    surface2 = Surface(filename=os.path.join(filedir, 'erf.srf_save'))

    distance = surface1.distance(surface2)
    assert distance < distance_measure