コード例 #1
0
def test_duplicates():
    fname = datadir+'/linelists/lin4077new'
    N = 50
    ll1 = LineList.read_moog(fname)
    ll2 = LineList.read_moog(fname)
    ll = table.vstack([ll1,ll2[0:N]])
    duplicate_indices,duplicate_lines = ll.find_duplicates(thresh=.01)
    assert_equals(2*N,len(duplicate_indices))
コード例 #2
0
def test_merge():
    ll1 = lls[0]
    ll2 = lls[1]
    ll1.merge(ll2,raise_exception=False)
    lls[0] = LineList.read_moog(datadir+'/linelists/masseron_linch.txt')