> OK I think I understand which functions are involved now, but I don't
> understand how this ever works!
>
> in python/ccpnmr/analysis/WindowPopup.py
>
> updateMenuState calls findPosition and gotoOrthogonalPlane
>
> gotoOrthogonalPlane calls gotoPosition from:
>
> python/ccpnmr/analysis/WindowDraw.py
>
> but I don't see where dimensions ever get transposed - please enlighten
> me.
The dimension and position mapping is precomputed upon the right mouse
click (in analysis.Util.findOrthogonalWindows() ). So, the transposition
occurred upstream, well before gotoPosition was called.
Incidentally, the error was due to the order of spectrum data dimensions
being different to the order of the axis panels in some windows. The now
fixed function only needs to consider the axis panel types, so the
ordering of spectrum dims doesn't matter.
Tim
-------------------------------------------------------------------------------
Dr Tim Stevens Email: [log in to unmask]
Department of Biochemistry [log in to unmask]
University of Cambridge Phone: +44 1223 766022 (office)
80 Tennis Court Road +44 7816 338275 (mobile)
Old Addenbrooke's Site +44 1223 364613 (home)
Cambridge CB2 1GA WWWeb: http://www.bio.cam.ac.uk/~tjs23
United Kingdom http://www.pantonia.co.uk
-------------------------------------------------------------------------------
------ +NH3CH(CH(CH3)OH)C(O)NHCH(CH(CH3)CH2CH3)C(O)NHCH(CH2CH2SCH3)CO2- -------
-------------------------------------------------------------------------------
|