Menu

Commit [r26674]  Maximize  Restore  History

Merged revisions 26667,26670 via svnmerge from

svn+ssh://bugman@.../svn/relax/trunk

........
r26667 | bugman | 2014-11-20 15:58:14 +0100 (Thu, 20 Nov 2014) | 9 lines

Big Python 3 bug fix for the dep_check module for the detection of the NMRPipe showApod software.

The showApod program was falsely detected as always not being present when using Python 3. This is
because the output of the program was being tested using string comparisons. However the output
from programs obtained from the subprocess module is no longer strings but rather byte-arrays in
Python 3. Therefore the byte-array is not being converted to text if Python 3 is being used,
allowing the showApod software to be detected.
........
r26670 | bugman | 2014-11-20 16:39:20 +0100 (Thu, 20 Nov 2014) | 6 lines

Python 3 bug fix for the lib.spectrum.nmrpipe.show_apod_extract() function.

The subprocess module output from the showApod program, or any software, is a byte array in Python 3
rather than text. This is now detected and the byte array converted to text before any processing.
........

bugman 2014-11-20

changed /branches/frame_order_cleanup
changed /branches/frame_order_cleanup/dep_check.py
changed /branches/frame_order_cleanup/lib/spectrum/nmrpipe.py
/branches/frame_order_cleanup/dep_check.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/lib/spectrum/nmrpipe.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.