Ejemplo n.º 1
0
 def test_read_ang(self, ref_path, mode):
     if mode == 'path':
         new = Table.load_ang(ref_path / 'simple.ang')
     elif mode == 'str':
         new = Table.load_ang(str(ref_path / 'simple.ang'))
     assert new.data.shape == (4,10) and \
            new.labels == ['eu', 'pos', 'IQ', 'CI', 'ID', 'intensity', 'fit']
Ejemplo n.º 2
0
 def test_read_ang_file(self, ref_path):
     f = open(ref_path / 'simple.ang')
     new = Table.load_ang(f)
     assert new.data.shape == (4,10) and \
            new.labels == ['eu', 'pos', 'IQ', 'CI', 'ID', 'intensity', 'fit']