Menu

SVN archive Commit Log


Commit Date  
[r26522] by bugman

Python 3 fixes via 2to3 - proper handling of the dict.items() and dict.values() functions.

These are now all wrapped in list() function calls to ensure that the Python 3 iterators are
converted to list objects before they are accessed.

The command used was:
2to3 -j 4 -w -f dict .

2014-11-11 13:43:25 Tree
[r26521] by bugman

Small update to the 2to3_checklist document - the print statement conversion has been added.

2014-11-11 13:34:56 Tree
[r26520] by bugman

Python 3 fixes via 2to3 - elimination of all apply() calls.

This only affects the GUI which cannot run in Python 3 yet as wxPython is not Python 3 compatible
yet.

The command used was:
2to3 -j 4 -w -f apply .

2014-11-11 13:34:12 Tree
[r26519] by bugman

Manual Python 3 fixes for the dict.key() function which returns a list or iterator in Python 2 or 3.

This involves a number of changes. The biggest is the conversion of the "x in y.keys()" statements
to "x in y". For code which requires a list of keys, the function calls "list(y.keys())" or
preferably "sorted(y.keys())" are used throughout (sorted() ensures that the list will be of the
same order on all operating systems and Python implementations). A number of "x in list(y.keys())"
statements were simplified to "x in y", some list() calls changed to sorted(), and some unnecessary
list() calls were removed.

2014-11-11 13:26:23 Tree
[r26518] by bugman

Expanded the Python 2 to 3 conversion document.

2014-11-11 13:10:47 Tree
[r26517] by bugman

The target_function.relax_fit module unit tests are now skipped if the C module is not compiled.

2014-11-11 12:39:57 Tree
[r26516] by bugman

The ImportErrors in unit tests are now correctly handled by the relax test suite.

If an ImportError occurred, this was previously killing the entire test suite.

2014-11-11 11:13:52 Tree
[r26515] by bugman

Merged revisions 26498-26513 via svnmerge from
svn+ssh://bugman@.../svn/relax/trunk

........
r26498 | bugman | 2014-11-10 19:56:07 +0100 (Mon, 10 Nov 2014) | 7 lines

Removed debugging code from the N_state_model.test_CaM_IQ_tensor_fit system test.

This was an accidentally introduced state.save user function used to catch the system test state.
It would results in the 'x.bz2' file being dumped in the current directory. It was introduced in
r26359 (http://article.gmane.org/gmane.science.nmr.relax.scm/24110).
........
r26499 | bugman | 2014-11-10 23:24:54 +0100 (Mon, 10 Nov 2014) | 5 lines

Loosened the checks in the Relax_disp.test_baldwin_synthetic_full system test.

This is to allow the test to pass on Python 2.5 and 3.1 on a 32-bit GNU/Linux system.
........
r26500 | bugman | 2014-11-10 23:32:07 +0100 (Mon, 10 Nov 2014) | 6 lines

Fix for the Relax_disp.test_cpmg_synthetic_dx_map_points system test for certain systems.

This change is to allow the test to pass on Python 2.5 and 3.1 on a 32-bit GNU/Linux system. This
may be related to 32-bit numpy 1.6.2 verses later numpy versions causing precision differences.
........
r26501 | bugman | 2014-11-10 23:43:15 +0100 (Mon, 10 Nov 2014) | 6 lines

Python 3 fixes for the relax codebase.

These changes were made using the command:
2to3 -j 4 -w -f buffer -f idioms -f set_literal -f ws_comma -x except -x import -x imports -x long -x numliterals -x xrange .
........
r26502 | bugman | 2014-11-11 09:19:53 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes throughout relax, as identified by the 2to3 script.

The command used was:
2to3 -j 4 -w -f except -f import -f imports -f long -f numliterals -f xrange .
........
r26503 | bugman | 2014-11-11 09:45:48 +0100 (Tue, 11 Nov 2014) | 3 lines

Python 3 fixes - eliminated all usage of the dictionary iteritems() calls as this no longer exists.
........
r26504 | bugman | 2014-11-11 09:53:01 +0100 (Tue, 11 Nov 2014) | 7 lines

Fixes for the Relax_disp.test_hansen_cpmg_data_missing_auto_analysis system test for certain systems.

The optimisation precision has been increased, and the value checking precision has been decreased.
This change is to allow the test to pass on Python 2.5 and 3.1 on a 32-bit GNU/Linux system. This
may be related to 32-bit numpy 1.6.2 verses later numpy versions causing precision differences.
........
r26505 | bugman | 2014-11-11 10:03:19 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes using 2to3 for the extern.numdifftools package (mainly spacing fixes).

The command used was:
2to3 -j 4 -w -f buffer -f idioms -f set_literal -f ws_comma -x except -x import -x imports -x long -x numliterals -x xrange .
........
r26506 | bugman | 2014-11-11 10:04:21 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes using 2to3 for the extern.numdifftools package.

The command used was:
2to3 -j 4 -w -f except -f import -f imports -f long -f numliterals -f xrange .
........
r26507 | bugman | 2014-11-11 10:09:43 +0100 (Tue, 11 Nov 2014) | 3 lines

Converted all the extern.numdifftools modules using the dos2unix program.
........
r26508 | bugman | 2014-11-11 10:12:48 +0100 (Tue, 11 Nov 2014) | 5 lines

Python 3 fixes for all print statements in the extern.numdifftools package.

The print statements have been manually converted into print() functions.
........
r26509 | bugman | 2014-11-11 10:20:30 +0100 (Tue, 11 Nov 2014) | 3 lines

Updated the Python 2 to Python 3 migration document to be more current.
........
r26510 | bugman | 2014-11-11 10:20:56 +0100 (Tue, 11 Nov 2014) | 3 lines

Small edit of the docs/devel/2to3_checklist document.
........
r26511 | bugman | 2014-11-11 10:26:07 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes via 2to3 - elimination of all map and lambda usage in relax.

The command used was:
2to3 -j 4 -w -f map .
........
r26512 | bugman | 2014-11-11 10:43:30 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes via 2to3 - replacement of all `x` with repr(x).

The command used was:
2to3 -j 4 -w -f repr .
........
r26513 | bugman | 2014-11-11 11:04:45 +0100 (Tue, 11 Nov 2014) | 3 lines

Expanded the Python 2 to 3 conversion document to list the 2to3 command individually.
........

2014-11-11 11:02:16 Tree
[r26514] by bugman

Merged revisions 26498-26513 via svnmerge from
svn+ssh://bugman@.../svn/relax/trunk

........
r26498 | bugman | 2014-11-10 19:56:07 +0100 (Mon, 10 Nov 2014) | 7 lines

Removed debugging code from the N_state_model.test_CaM_IQ_tensor_fit system test.

This was an accidentally introduced state.save user function used to catch the system test state.
It would results in the 'x.bz2' file being dumped in the current directory. It was introduced in
r26359 (http://article.gmane.org/gmane.science.nmr.relax.scm/24110).
........
r26499 | bugman | 2014-11-10 23:24:54 +0100 (Mon, 10 Nov 2014) | 5 lines

Loosened the checks in the Relax_disp.test_baldwin_synthetic_full system test.

This is to allow the test to pass on Python 2.5 and 3.1 on a 32-bit GNU/Linux system.
........
r26500 | bugman | 2014-11-10 23:32:07 +0100 (Mon, 10 Nov 2014) | 6 lines

Fix for the Relax_disp.test_cpmg_synthetic_dx_map_points system test for certain systems.

This change is to allow the test to pass on Python 2.5 and 3.1 on a 32-bit GNU/Linux system. This
may be related to 32-bit numpy 1.6.2 verses later numpy versions causing precision differences.
........
r26501 | bugman | 2014-11-10 23:43:15 +0100 (Mon, 10 Nov 2014) | 6 lines

Python 3 fixes for the relax codebase.

These changes were made using the command:
2to3 -j 4 -w -f buffer -f idioms -f set_literal -f ws_comma -x except -x import -x imports -x long -x numliterals -x xrange .
........
r26502 | bugman | 2014-11-11 09:19:53 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes throughout relax, as identified by the 2to3 script.

The command used was:
2to3 -j 4 -w -f except -f import -f imports -f long -f numliterals -f xrange .
........
r26503 | bugman | 2014-11-11 09:45:48 +0100 (Tue, 11 Nov 2014) | 3 lines

Python 3 fixes - eliminated all usage of the dictionary iteritems() calls as this no longer exists.
........
r26504 | bugman | 2014-11-11 09:53:01 +0100 (Tue, 11 Nov 2014) | 7 lines

Fixes for the Relax_disp.test_hansen_cpmg_data_missing_auto_analysis system test for certain systems.

The optimisation precision has been increased, and the value checking precision has been decreased.
This change is to allow the test to pass on Python 2.5 and 3.1 on a 32-bit GNU/Linux system. This
may be related to 32-bit numpy 1.6.2 verses later numpy versions causing precision differences.
........
r26505 | bugman | 2014-11-11 10:03:19 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes using 2to3 for the extern.numdifftools package (mainly spacing fixes).

The command used was:
2to3 -j 4 -w -f buffer -f idioms -f set_literal -f ws_comma -x except -x import -x imports -x long -x numliterals -x xrange .
........
r26506 | bugman | 2014-11-11 10:04:21 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes using 2to3 for the extern.numdifftools package.

The command used was:
2to3 -j 4 -w -f except -f import -f imports -f long -f numliterals -f xrange .
........
r26507 | bugman | 2014-11-11 10:09:43 +0100 (Tue, 11 Nov 2014) | 3 lines

Converted all the extern.numdifftools modules using the dos2unix program.
........
r26508 | bugman | 2014-11-11 10:12:48 +0100 (Tue, 11 Nov 2014) | 5 lines

Python 3 fixes for all print statements in the extern.numdifftools package.

The print statements have been manually converted into print() functions.
........
r26509 | bugman | 2014-11-11 10:20:30 +0100 (Tue, 11 Nov 2014) | 3 lines

Updated the Python 2 to Python 3 migration document to be more current.
........
r26510 | bugman | 2014-11-11 10:20:56 +0100 (Tue, 11 Nov 2014) | 3 lines

Small edit of the docs/devel/2to3_checklist document.
........
r26511 | bugman | 2014-11-11 10:26:07 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes via 2to3 - elimination of all map and lambda usage in relax.

The command used was:
2to3 -j 4 -w -f map .
........
r26512 | bugman | 2014-11-11 10:43:30 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes via 2to3 - replacement of all `x` with repr(x).

The command used was:
2to3 -j 4 -w -f repr .
........
r26513 | bugman | 2014-11-11 11:04:45 +0100 (Tue, 11 Nov 2014) | 3 lines

Expanded the Python 2 to 3 conversion document to list the 2to3 command individually.
........

2014-11-11 11:02:14 Tree
[r26513] by bugman

Expanded the Python 2 to 3 conversion document to list the 2to3 command individually.

2014-11-11 10:04:45 Tree
Older >
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.