Ejemplo n.º 1
0
def test_roi_xy():
    """ Test the roi_xy function """
    xy = np.arange(-4, 5)
    result = [xy,xy]
    roi_xy = image_ema_project.roi_xy([0,0],[8,8])
    #np.all tests that we have a match for all data
    assert np.all(np.equal(roi_xy, result))
Ejemplo n.º 2
0
def test_roi_xy():
    '''test the roi_xy function'''  #为了测试所得到的结果和已经知道的结果是否相同
    xy = np.arange(-4, 5)
    result = [xy, xy]  #实际已经知道的结果

    roi_xy = image_ema_project.roi_xy([0, 0], [8, 8])  #计算得到的结果

    assert np.all(np.equal(roi_xy, result))  #返回true or false
Ejemplo n.º 3
0
def test_roi_xy():
    """ Method to test roi_xy.py """

    xy = np.arange(-4, 5)
    result = [xy, xy]

    roi_xy = image_ema_project.roi_xy([0, 0], [8, 8])

    assert np.all(np.equal(roi_xy, result))
def test_roi_xy():
    """ Test the roi_xy function """
    xy = np.arange(-4, 5)
    roi_xy = image_ema_project.roi_xy([0, 0], [8, 8])
    assert np.all(np.equal(roi_xy, [xy, xy]))
Ejemplo n.º 5
0
def test_roi_xy():
    """ Test the `roi_xy` function """
    xy = np.arange(-4,5)
    result = [xy, xy]
    roi_xy = image_ema_project.roi_xy([0, 0], [8, 8])
    assert np.all(np.equal(roi_xy, result))