jjhelmus / nmrglue

A module for working with NMR data in Python
BSD 3-Clause "New" or "Revised" License
209 stars 86 forks source link

Correctly guessing spectral widths in multidimensional datasets #98

Closed kaustubhmote closed 5 years ago

kaustubhmote commented 5 years ago

The bruker.guess_udic and the underlying add_axes_to_udic only looked up parameters present in the acqus file and failed for higher dimensions. The SW_h key is not available for indirect dimensions and the spectral width is now calculated from SW and SFO1 parameters. This PR does not change default behavior.

jjhelmus commented 5 years ago

LGTM, thanks for the fix @kaustubhmote. This might help with #97 as well.

kaustubhmote commented 5 years ago

Ya, that is what I was trying to fix when I saw this. However #97 seems to have some issue in the direct dimension, which should have be read correctly even without this fix.