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))
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')