예제 #1
0
def test_get_indices_empty_result():
  positions = create_grid()
  inds = get_indices_for_pos(positions, .1, 3.5, .5, .9)  
  assert(inds.size == 0)       
예제 #2
0
파일: pyramid.py 프로젝트: raldam/timely
def test_get_indices_empty_result():
    positions = create_grid()
    inds = get_indices_for_pos(positions, .1, 3.5, .5, .9)
    assert (inds.size == 0)
예제 #3
0
def test_get_indices():
  positions = create_grid()        
  inds = get_indices_for_pos(positions, .1, 3.5, .5, 3)
  inds_gt = np.array([6,7,8,11,12,13,16,17,18])  
  assert(inds.all() == inds_gt.all())
예제 #4
0
파일: pyramid.py 프로젝트: raldam/timely
def test_get_indices():
    positions = create_grid()
    inds = get_indices_for_pos(positions, .1, 3.5, .5, 3)
    inds_gt = np.array([6, 7, 8, 11, 12, 13, 16, 17, 18])
    assert (inds.all() == inds_gt.all())