Hi Brian,
Thanks for the file. Obviously noone has used the storage files for peak
import (or didn't tell us), because it's a pretty glaring mistake in the
code!
Anyway the quick fix (haven't implemented the update stuff from Tim yet in
the FormatConverter but will try to do this soon). In the file:
.../python/ccp/format/ansig/peaksIO.py
from line 288 on there is a block of text that reads:
assignRes = n*['']
assignResNum = n*['']
assignAtom = n*['']
dimcons = n*[('','')]
ppm = n*[0]
cut this and move it inside the
while line:
block, just above the following line:
peaknum += 1
so that it reads:
assignRes = n*['']
assignResNum = n*['']
assignAtom = n*['']
dimcons = n*[('','')]
ppm = n*[0]
peaknum += 1
Do *NOT* cut the
peaknum = 0
line just before the
assignRes = n*['']
line! That one has to stay...
Anyway that should work. It was just reusing the same list over and over
again for each peak.
Bye,
Wim
|