Subject: Re: [nmr_sparky] Peaktable.py
From: Thomas Goddard
Date: Oct 31, 2006

Previous: 274 Next: 278


Hi Mandar,

The spectrum columns for peaktable (pb) are in random order in Sparky 3.113
and earlier versions. (A python dictionary was being used for the chosen
spectra which does not keep track of order of elements).

Here is a revised version of peaktable.py that preserves the spectrum
order.

http://www.cgl.ucsf.edu/home/sparky/prerelease/peaktable.py

This new code lists the spectra in the order that you selected them.
Replace the following file in your Sparky distribution

sparky/python/sparky/peaktable.py

with this new file. Ive tested the new code with Sparky 3.113, though
it should also work with 3.112 and probably 3.110 also. Future Sparky
versions will have this fix.

Tom