def listScans(self, *args):
pfx = "listScans:"
if not self.msname:
print pfx,"No MS loaded yet"
return None
if not self.scanlist:
print pfx, "No scans (yet) - have you run the 'indexr' task?"
return None
# print list of scan id's + text
lines = "\n".join( map(str, self.scanlist) )
if args and '-p' in args:
pydoc.pager( lines )
else:
print lines
评论列表
文章目录