Menu

Commit [r17838]  Maximize  Restore  History

Merged revisions 17651-17660 via svnmerge from

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

........
r17651 | bugman | 2012-10-02 10:52:35 +0200 (Tue, 02 Oct 2012) | 5 lines

Created the check_types.is_unicode() function for Python 2+3 compatibility.

This is used in the generic_fns.mol_res_spin module.
........
r17652 | bugman | 2012-10-02 10:53:34 +0200 (Tue, 02 Oct 2012) | 3 lines

More usage of the is_unicode() function in the generic_fns.mol_res_spin module.
........
r17653 | bugman | 2012-10-02 10:54:58 +0200 (Tue, 02 Oct 2012) | 3 lines

Import fix for the OpenDX mapping package, recently broken with the relative import for Python 3 change.
........
r17654 | bugman | 2012-10-02 11:04:51 +0200 (Tue, 02 Oct 2012) | 3 lines

The compat module now has the py_version variable specifying if this is Python 2 or 3.
........
r17655 | bugman | 2012-10-02 11:39:17 +0200 (Tue, 02 Oct 2012) | 7 lines

For running relax with Python 2, the __builtin__.range() function has been replaced with xrange.

This causes large speed ups (speed that was lost with the earlier xrange() to range() conversions),
and memory decreases. For example on one system, the system test time decreased from 513.029s to
487.586s.
........
r17656 | bugman | 2012-10-02 11:47:15 +0200 (Tue, 02 Oct 2012) | 6 lines

Automatically converted the generic_fns.mol_res_spin module to support both Python 2 and 3.

The command used was:
2to3 -w generic_fns/mol_res_spin.py
........
r17657 | bugman | 2012-10-02 11:53:17 +0200 (Tue, 02 Oct 2012) | 5 lines

Python 3 fix for the generic_fns.mol_res_spin.parse_token() function.

Mixed lists for int and string can no longer be sorted. This sort call is not needed anyway.
........
r17658 | bugman | 2012-10-02 13:35:59 +0200 (Tue, 02 Oct 2012) | 3 lines

Fix for the test_parse_token_multi_element_name() unit test, as parse_token() no longer sorts.
........
r17659 | bugman | 2012-10-02 14:05:17 +0200 (Tue, 02 Oct 2012) | 6 lines

Fix for the running of the test suite under Python 3.

The zip() function used in the loadTestsFromTestCase() function is now an iterator, so it needs to
be passed through the list() function to generate a list.
........
r17660 | bugman | 2012-10-02 14:05:50 +0200 (Tue, 02 Oct 2012) | 3 lines

Copyright update.
........

bugman 2012-10-16

changed /branches/frame_order_testing
changed /branches/frame_order_testing/check_types.py
changed /branches/frame_order_testing/compat.py
changed /branches/frame_order_testing/generic_fns/mol_res_spin.py
changed /branches/frame_order_testing/opendx/main.py
changed /branches/frame_order_testing/test_suite/relax_test_loader.py
changed /branches/frame_order_testing/test_suite/unit_tests/_generic_fns/test_mol_res_spin.py
/branches/frame_order_testing/check_types.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_testing/compat.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_testing/generic_fns/mol_res_spin.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_testing/opendx/main.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_testing/test_suite/relax_test_loader.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_testing/test_suite/unit_tests/_generic_fns/test_mol_res_spin.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.