Hello,
Well there is a bug in Analysis to do with figuring out the isotope of the
various dimensions in NMRPipe files. The NMRPipe header has four bytes
for each isotope and the current code does a "strip", which removes white
space. Only it seems NMRPipe doesn't pad the isotopes with white space
but with the nasty character \0 (so not the string "0" but the string
"\0"). Fortunately Analysis allows you to change the isotopes in the
verification dialog, but if you want to fix this in your current release
then go into ccpnmr1.0/python/ccpnmr/analysis/NmrPipeParams.py, and on
line 138 you find:
nuc = s[n:n+4].strip()
Add after that put:
m = nuc.find(chr(0))
if m >= 0:
nuc = nuc[:m]
(If you have Python >= 2.2.2, and the Python included with Analysis is
2.2.3, then you can do it in one line instead:
nuc = nuc.strip(chr(0))
Wayne
|