I managed to solve this using the following method:
"""Returns a dictionary of indexes of spectra for which there are secondary
scans, along with the indexes of those scans
"""
scans = dict()
# get an iterable
context = cElementTree.iterparse(self.info['filename']
Hi there, I am parsing some huge xml files (1.8 Gb) that look like this:
some data
some data
some data
What I am trying to do is build up a dictionary of lists where the key is the
parent scan num and the members of the list are the child scan nums.
I ha