def test_readfile_content(self): f = pyopenms.IndexedMzMLFile() f.openFile(self.filename) self.assertEqual(f.getNrSpectra(), 2) self.assertEqual(f.getNrChromatograms(), 1) s = f.getSpectrumById(0) mzdata = s.getMZArray() intdata = s.getIntensityArray() self.assertEqual(len(mzdata), 19914) self.assertEqual(len(intdata), 19914)
def test_readfile(self): f = pyopenms.IndexedMzMLFile() f.openFile(self.filename) self.assertTrue(f.getParsingSuccess())