Author: bugman Date: Mon Mar 19 06:22:33 2007 New Revision: 3226 URL: http://svn.gna.org/viewcvs/relax?rev=3226&view=rev Log: Bug fix. The spin_loop() and molecule_loop() generator functions now accept zero arguments for the selection of everything. This fixes two of the unit tests. The test_molecule_loop_no_selection() unit test has also been fixed. Modified: 1.3/generic_fns/selection.py 1.3/test_suite/unit_tests/generic_fns/test_selection.py Modified: 1.3/generic_fns/selection.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/selection.py?rev=3226&r1=3225&r2=3226&view=diff ============================================================================== --- 1.3/generic_fns/selection.py (original) +++ 1.3/generic_fns/selection.py Mon Mar 19 06:22:33 2007 @@ -180,7 +180,7 @@ print "No residues match." -def molecule_loop(selection): +def molecule_loop(selection=None): """Generator function for looping over all the molecules of the given selection. @param selection: The molecule selection identifier. @@ -434,7 +434,7 @@ print "No residues match." -def spin_loop(selection): +def spin_loop(selection=None): """Generator function for looping over all the spin systems of the given selection. @param selection: The spin system selection identifier. Modified: 1.3/test_suite/unit_tests/generic_fns/test_selection.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/generic_fns/test_selection.py?rev=3226&r1=3225&r2=3226&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/generic_fns/test_selection.py (original) +++ 1.3/test_suite/unit_tests/generic_fns/test_selection.py Mon Mar 19 06:22:33 2007 @@ -92,7 +92,7 @@ """ # Molecule data. - name = [None, 'RNA'] + name = ['Ap4Aase', 'RNA'] # Loop over the molecules. i = 0