Author: bugman Date: Tue Nov 13 22:39:40 2007 New Revision: 3527 URL: http://svn.gna.org/viewcvs/relax?rev=3527&view=rev Log: Blocked revisions 3379,3382-3524 via svnmerge ........ r3379 | bugman | 2007-10-28 18:55:32 +0100 (Sun, 28 Oct 2007) | 8 lines Fix for bug #9389 (https://gna.org/bugs/?9389). This bug was caused by the move away from using the __builtin__ namespace. As the file is now treated as a module from which errors must be imported, the AllRelaxErrors object was not being created. The solution was to add the function 'all_errors()' which returns a list of all the RelaxError objects. ........ r3382 | bugman | 2007-10-28 20:29:06 +0100 (Sun, 28 Oct 2007) | 3 lines Added two unit tests for the, as of yet, non-existent 'generic_fns.residue.rename()' function. ........ r3383 | bugman | 2007-10-28 20:32:32 +0100 (Sun, 28 Oct 2007) | 7 lines Removed the 'residue.merge()' from the data model redesign document. I cannot see the purpose of this function, as it would probably duplicate the functionality of 'residue.copy()' function. It was first mentioned by Chris MacRaild in the post at https://mail.gna.org/public/relax-devel/2006-10/msg00061.html. ........ r3384 | bugman | 2007-10-29 15:02:21 +0100 (Mon, 29 Oct 2007) | 3 lines Added a unit test for renaming multiple residues simultaneously through 'residue.rename()'. ........ r3385 | bugman | 2007-10-29 15:03:53 +0100 (Mon, 29 Oct 2007) | 3 lines Fixed a bug in the 'test_rename' unit test. ........ r3386 | bugman | 2007-10-29 15:07:45 +0100 (Mon, 29 Oct 2007) | 3 lines Added 3 unit tests for the non-existant residue.renumber() function. ........ r3387 | bugman | 2007-11-03 14:09:28 +0100 (Sat, 03 Nov 2007) | 3 lines Created the generic_fns.residue.rename() function and fixed the corresponding unit tests. ........ r3388 | bugman | 2007-11-03 16:04:48 +0100 (Sat, 03 Nov 2007) | 3 lines Implemented the generic_fns.residue.renumber() function and fixed its unit tests. ........ r3389 | bugman | 2007-11-03 17:46:41 +0100 (Sat, 03 Nov 2007) | 3 lines Added the rudimentary beginnings of the molecule user function class. ........ r3390 | bugman | 2007-11-03 18:36:21 +0100 (Sat, 03 Nov 2007) | 3 lines Alphabetical arrangement of the residue user functions. ........ r3391 | bugman | 2007-11-03 18:37:32 +0100 (Sat, 03 Nov 2007) | 3 lines Spelling correction. ........ r3392 | bugman | 2007-11-03 19:25:57 +0100 (Sat, 03 Nov 2007) | 6 lines More unit tests for the generic_fns.residue.copy() function. The current test was renamed. Two new tests were added for copying between molecules and copying between data pipes. ........ r3393 | bugman | 2007-11-03 23:37:13 +0100 (Sat, 03 Nov 2007) | 5 lines A large number of changes to make the residue.copy() user function fully functional. Now residue data can be copied within a single molecule, between molecules, and between data pipes. ........ r3394 | bugman | 2007-11-04 11:55:51 +0100 (Sun, 04 Nov 2007) | 6 lines Added a test for the failure of the generic_fns.selection.return_residue() function. This tests the failure of asking for a non-existent data pipe and the function has been fixed to fail appropriately. ........ r3395 | bugman | 2007-11-04 13:15:18 +0100 (Sun, 04 Nov 2007) | 3 lines Added another unit test for the generic_fns.selection.return_residue() function. ........ r3396 | bugman | 2007-11-04 13:19:36 +0100 (Sun, 04 Nov 2007) | 5 lines Added two unit tests for the generic_fns.selection.return_molecule() function. Also made the function fail properly when no data pipe exists. ........ r3397 | bugman | 2007-11-04 13:27:15 +0100 (Sun, 04 Nov 2007) | 3 lines Added two unit tests for the generic_fns.selection.return_single_residue_info() function. ........ r3398 | bugman | 2007-11-04 13:36:57 +0100 (Sun, 04 Nov 2007) | 3 lines Renamed all instances of RelaxNoRunError to RelaxNoPipeError, and updated the error message. ........ r3399 | bugman | 2007-11-04 13:39:20 +0100 (Sun, 04 Nov 2007) | 3 lines Renamed all instances of RelaxRunError with RelaxPipeError, and modified the error message. ........ r3400 | bugman | 2007-11-04 13:42:08 +0100 (Sun, 04 Nov 2007) | 3 lines Replaced all mention of 'run' from the RelaxError system and replaced it with 'pipe'. ........ r3401 | bugman | 2007-11-04 13:51:00 +0100 (Sun, 04 Nov 2007) | 3 lines Removed dud user functions from 'residue' which remained from the copy of 'sequence'. ........ r3402 | bugman | 2007-11-04 13:51:37 +0100 (Sun, 04 Nov 2007) | 3 lines Updated the docstring modifications of the 'residue' user function class. ........ r3403 | bugman | 2007-11-04 13:57:38 +0100 (Sun, 04 Nov 2007) | 3 lines Added the residue.rename() user function. ........ r3404 | bugman | 2007-11-04 14:01:46 +0100 (Sun, 04 Nov 2007) | 3 lines Created the residue.renumber() user function. ........ r3405 | bugman | 2007-11-04 14:37:59 +0100 (Sun, 04 Nov 2007) | 6 lines Created the residue.display() user function. This has been added to the data model redesign document. Two unit tests have also been created for the function. ........ r3406 | bugman | 2007-11-04 14:39:34 +0100 (Sun, 04 Nov 2007) | 3 lines Fixed a typo in the docstrings of the unit tests for the generic_fns.residue functions. ........ r3407 | bugman | 2007-11-04 14:49:55 +0100 (Sun, 04 Nov 2007) | 3 lines Modified the data model redesign document to show that the residue user function class is finished. ........ r3408 | bugman | 2007-11-04 14:56:03 +0100 (Sun, 04 Nov 2007) | 3 lines Removed junk code, left over from the copy from 'generic_fns/sequence.py'. ........ r3409 | bugman | 2007-11-04 14:58:41 +0100 (Sun, 04 Nov 2007) | 3 lines Removed some no longer used RelaxError imports. ........ r3410 | bugman | 2007-11-04 15:38:46 +0100 (Sun, 04 Nov 2007) | 3 lines Added a module docstring. ........ r3411 | bugman | 2007-11-04 15:40:29 +0100 (Sun, 04 Nov 2007) | 3 lines Spacing. ........ r3412 | bugman | 2007-11-04 15:41:08 +0100 (Sun, 04 Nov 2007) | 3 lines Created the module docstring. ........ r3413 | bugman | 2007-11-04 15:42:22 +0100 (Sun, 04 Nov 2007) | 3 lines Added the setUp and tearDown functions for the generic_fns.molecule function unit tests. ........ r3414 | bugman | 2007-11-04 15:43:40 +0100 (Sun, 04 Nov 2007) | 5 lines Replace the contents of 'generic_fns/molecule.py' with those of 'generic_fns/residue.py'. The file originated from 'generic_fns/residue.py' but was unmodified and out of date. ........ r3415 | bugman | 2007-11-04 17:14:57 +0100 (Sun, 04 Nov 2007) | 3 lines Updated the module names in '__init__.py'. ........ r3416 | bugman | 2007-11-04 17:28:45 +0100 (Sun, 04 Nov 2007) | 6 lines Created the molecule.create() user function. The user function and the function generic_fns.molecule.create() have been written. Two unit tests for the function have been created. ........ r3417 | bugman | 2007-11-04 17:30:29 +0100 (Sun, 04 Nov 2007) | 3 lines Removed the useless molecule user functions remaining from the copy from 'prompt/sequence.py'. ........ r3418 | bugman | 2007-11-04 17:31:34 +0100 (Sun, 04 Nov 2007) | 3 lines Renamed the user function 'molecule.add()' to 'molecule.create()' in the redesign doc. ........ r3419 | bugman | 2007-11-04 17:58:21 +0100 (Sun, 04 Nov 2007) | 3 lines Added a unit test for the copying of the molecule data between different data pipes. ........ r3420 | bugman | 2007-11-04 18:00:03 +0100 (Sun, 04 Nov 2007) | 6 lines Added the 'return_single_molecule_info()' function and fixed the 'return_molecule()' function. The 'return_molecule()' function was returning a molecule container when no molecule selection was given. Now None is returned. ........ r3421 | bugman | 2007-11-04 18:01:59 +0100 (Sun, 04 Nov 2007) | 6 lines Modified the 'generic_fns.residue.copy()' function to work with the modified 'return_molecule()' fn. Five unit test were failing due to the previous commit. This was because of a problem in 'generic_fns.residue.copy()' that wasn't previously detected. ........ r3422 | bugman | 2007-11-04 18:04:22 +0100 (Sun, 04 Nov 2007) | 3 lines Another fix for the 'return_molecule()' function. ........ r3423 | bugman | 2007-11-04 18:10:46 +0100 (Sun, 04 Nov 2007) | 3 lines A few more fixes to the 'return_molecule()' function. ........ r3424 | bugman | 2007-11-04 18:11:21 +0100 (Sun, 04 Nov 2007) | 3 lines Wrote the generic_fns.molecule.copy() function. ........ r3425 | bugman | 2007-11-04 18:14:20 +0100 (Sun, 04 Nov 2007) | 3 lines Added a unit test to test the failure of copying molecule data to a non-existent data pipe. ........ r3426 | bugman | 2007-11-04 18:23:47 +0100 (Sun, 04 Nov 2007) | 3 lines Added two more unit tests for the generic_fns.molecule.copy() function. ........ r3427 | bugman | 2007-11-04 18:53:24 +0100 (Sun, 04 Nov 2007) | 3 lines Created the molecule.copy() user function interface. ........ r3428 | bugman | 2007-11-04 18:54:23 +0100 (Sun, 04 Nov 2007) | 3 lines A few changes to the residue.copy() user function RelaxError messages. ........ r3429 | bugman | 2007-11-04 19:02:46 +0100 (Sun, 04 Nov 2007) | 3 lines Added a unit test for the generic_fns.molecule.delete() function. ........ r3430 | bugman | 2007-11-04 19:07:43 +0100 (Sun, 04 Nov 2007) | 3 lines Added a unit test for the deletion of all molecules. ........ r3431 | bugman | 2007-11-04 19:10:12 +0100 (Sun, 04 Nov 2007) | 3 lines Added a unit test for the failure of the generic_fns.molecule.delete() function. ........ r3432 | bugman | 2007-11-04 19:16:58 +0100 (Sun, 04 Nov 2007) | 3 lines Implemented the generic_fns.molecule.delete() function. ........ r3433 | bugman | 2007-11-04 19:17:35 +0100 (Sun, 04 Nov 2007) | 3 lines Fixed a problem in the 'test_delete_all()' unit test. ........ r3434 | bugman | 2007-11-04 19:20:18 +0100 (Sun, 04 Nov 2007) | 3 lines Added 2 unit tests for the generic_fns.molecule.display() function. ........ r3435 | bugman | 2007-11-04 19:26:18 +0100 (Sun, 04 Nov 2007) | 3 lines A small change to a generic_fns.molecule.display() unit test. ........ r3436 | bugman | 2007-11-04 19:26:42 +0100 (Sun, 04 Nov 2007) | 3 lines Wrote the generic_fns.molecule.display() function. ........ r3437 | bugman | 2007-11-04 19:28:43 +0100 (Sun, 04 Nov 2007) | 3 lines Debugged the generic_fns.molecule.display() function. ........ r3438 | bugman | 2007-11-04 19:29:34 +0100 (Sun, 04 Nov 2007) | 3 lines Removed some debugging print statements. ........ r3439 | bugman | 2007-11-04 19:33:54 +0100 (Sun, 04 Nov 2007) | 3 lines Implemented the molecule.delete() user function. ........ r3440 | bugman | 2007-11-04 19:36:00 +0100 (Sun, 04 Nov 2007) | 3 lines Implemented the molecule.display() user function. ........ r3441 | bugman | 2007-11-04 19:38:07 +0100 (Sun, 04 Nov 2007) | 3 lines Modified the molecule user functions to include the identification string documentation. ........ r3442 | bugman | 2007-11-04 19:38:59 +0100 (Sun, 04 Nov 2007) | 3 lines Added a missing import statement. ........ r3443 | bugman | 2007-11-04 19:41:53 +0100 (Sun, 04 Nov 2007) | 3 lines Added a unit test for the generic_fns.molecule.rename() function. ........ r3444 | bugman | 2007-11-04 19:47:00 +0100 (Sun, 04 Nov 2007) | 3 lines Implemented the generic_fns.molecule.rename() function. ........ r3445 | bugman | 2007-11-04 19:50:28 +0100 (Sun, 04 Nov 2007) | 3 lines Implemented the molecule.rename() user function. ........ r3446 | bugman | 2007-11-04 19:56:29 +0100 (Sun, 04 Nov 2007) | 3 lines Added 2 unit tests for the failure of the generic_fns.molecule.rename() function. ........ r3447 | bugman | 2007-11-04 19:57:43 +0100 (Sun, 04 Nov 2007) | 3 lines Fixed a bug in generic_fns.molecule.rename() found using the previously committed unit tests. ........ r3448 | bugman | 2007-11-04 19:58:53 +0100 (Sun, 04 Nov 2007) | 3 lines Renamed the user function molecule.info() to molecule.display() in the redesign document. ........ r3449 | bugman | 2007-11-04 19:59:34 +0100 (Sun, 04 Nov 2007) | 3 lines Added the molecule.rename() user function to the redesign document. ........ r3450 | bugman | 2007-11-04 20:12:54 +0100 (Sun, 04 Nov 2007) | 3 lines Updated the redesign document to show that the molecule user functions are all implemented. ........ r3451 | bugman | 2007-11-04 20:13:24 +0100 (Sun, 04 Nov 2007) | 3 lines Removed some unused imports. ........ r3452 | bugman | 2007-11-04 20:14:23 +0100 (Sun, 04 Nov 2007) | 3 lines Removed some unused imports. ........ r3453 | bugman | 2007-11-04 20:15:11 +0100 (Sun, 04 Nov 2007) | 3 lines Removed some unused imports. ........ r3454 | bugman | 2007-11-04 20:48:09 +0100 (Sun, 04 Nov 2007) | 3 lines Removed the out of date spin system module. ........ r3455 | bugman | 2007-11-04 20:49:37 +0100 (Sun, 04 Nov 2007) | 6 lines Copied, for a second time, generic_fns/residue.py to generic_fns/spin.py. This had previously been done, but the copied file was now well out of date and useless. It has been replaced with a newer version. ........ r3456 | bugman | 2007-11-04 20:51:15 +0100 (Sun, 04 Nov 2007) | 3 lines Updated the copyright notice. ........ r3457 | bugman | 2007-11-04 20:51:53 +0100 (Sun, 04 Nov 2007) | 3 lines Updated the module docstring. ........ r3458 | bugman | 2007-11-04 20:53:49 +0100 (Sun, 04 Nov 2007) | 3 lines Updated the 'self.setup_data()' docstring. ........ r3459 | bugman | 2007-11-04 20:54:45 +0100 (Sun, 04 Nov 2007) | 3 lines Added a docstring to the 'self.setup_data()' function. ........ r3460 | bugman | 2007-11-04 20:56:55 +0100 (Sun, 04 Nov 2007) | 3 lines Added the setUp, tearDown, and setup_data functions for the unit tests of 'generic_fns.spin'. ........ r3461 | bugman | 2007-11-06 20:32:19 +0100 (Tue, 06 Nov 2007) | 3 lines Copied the GPL 'COPYING' file to the 'minimise' dir to prepare to copy this code to the minfx project. ........ r3462 | bugman | 2007-11-11 10:56:15 +0100 (Sun, 11 Nov 2007) | 5 lines Removed the useless read(), sort(), and write() spin user functions. These were remnants of the copy from the original sequence user function module. ........ r3463 | bugman | 2007-11-11 10:57:42 +0100 (Sun, 11 Nov 2007) | 3 lines Removed the prompt.spin module. This will be replaced by the current residue module instead. ........ r3464 | bugman | 2007-11-11 10:58:12 +0100 (Sun, 11 Nov 2007) | 3 lines Copied the residue user function module to the spin module. ........ r3465 | bugman | 2007-11-11 11:00:16 +0100 (Sun, 11 Nov 2007) | 3 lines The spin user function class is now accessible from the prompt. ........ r3466 | bugman | 2007-11-11 11:12:44 +0100 (Sun, 11 Nov 2007) | 3 lines Wrote a unit test for checking the copying of spin data between molecules. ........ r3467 | bugman | 2007-11-11 12:14:24 +0100 (Sun, 11 Nov 2007) | 3 lines Added a unit test for copying spins between residues and improvements to 'test_spin.py'. ........ r3468 | bugman | 2007-11-11 12:19:14 +0100 (Sun, 11 Nov 2007) | 3 lines Added a unit test for copying spin data between data pipes. ........ r3469 | bugman | 2007-11-11 12:21:26 +0100 (Sun, 11 Nov 2007) | 3 lines Added a unit test for the failure of copying spin data to a non-existent data pipe. ........ r3470 | bugman | 2007-11-11 12:26:55 +0100 (Sun, 11 Nov 2007) | 3 lines Added a unit test for various types of failure of copying spin data. ........ r3471 | bugman | 2007-11-11 12:30:17 +0100 (Sun, 11 Nov 2007) | 3 lines Added the missing RelaxError import statement. ........ r3472 | bugman | 2007-11-11 12:35:26 +0100 (Sun, 11 Nov 2007) | 3 lines Updated the generic_fns.spin.copy() function to be spin specific rather than residue specific. ........ r3473 | bugman | 2007-11-11 12:37:50 +0100 (Sun, 11 Nov 2007) | 3 lines Added the function generic_fns.selection.return_single_spin_info(). ........ r3474 | bugman | 2007-11-11 12:41:03 +0100 (Sun, 11 Nov 2007) | 3 lines Created the function generic_fns.selection.return_spin(). ........ r3475 | bugman | 2007-11-11 12:44:55 +0100 (Sun, 11 Nov 2007) | 3 lines Added the missing return_spin import. ........ r3476 | bugman | 2007-11-11 12:59:27 +0100 (Sun, 11 Nov 2007) | 3 lines Added a docstring and comments to the selection class method __contains__(). ........ r3477 | bugman | 2007-11-11 13:06:33 +0100 (Sun, 11 Nov 2007) | 3 lines Fixed up the data setup for the spin.copy() unit function tests. ........ r3478 | bugman | 2007-11-11 13:08:31 +0100 (Sun, 11 Nov 2007) | 3 lines More fixes for the data setup for the spin.copy() unit function tests. ........ r3479 | bugman | 2007-11-11 13:10:25 +0100 (Sun, 11 Nov 2007) | 3 lines Fixes to the spin.copy() unit test 'test_copy_between_molecules'. ........ r3480 | bugman | 2007-11-11 13:14:24 +0100 (Sun, 11 Nov 2007) | 3 lines Fixed a small bug in the spin.copy() unit test 'test_copy_between_residues'. ........ r3481 | bugman | 2007-11-11 13:16:57 +0100 (Sun, 11 Nov 2007) | 3 lines Fixed a number of bugs in the generic_fns.spin unit test setup_data function. ........ r3482 | bugman | 2007-11-11 13:21:21 +0100 (Sun, 11 Nov 2007) | 3 lines Bug fixes for the spin.copy() unit test 'test_copy_between_residues'. ........ r3483 | bugman | 2007-11-11 13:26:26 +0100 (Sun, 11 Nov 2007) | 3 lines Added another check in the spin.copy unit test 'test_copy_fail'. ........ r3484 | bugman | 2007-11-11 13:29:30 +0100 (Sun, 11 Nov 2007) | 3 lines Split the generic_fns.spin.copy() unit test 'test_copy_fail' into four unit tests. ........ r3485 | bugman | 2007-11-11 13:31:01 +0100 (Sun, 11 Nov 2007) | 3 lines Bug fix for the spin.copy() unit test 'test_copy_between_residues'. ........ r3486 | bugman | 2007-11-11 13:33:07 +0100 (Sun, 11 Nov 2007) | 3 lines Added a test for the existence of the target residue. ........ r3487 | bugman | 2007-11-11 13:34:42 +0100 (Sun, 11 Nov 2007) | 3 lines A number of bug fixes to the spin.copy() function. ........ r3488 | bugman | 2007-11-11 13:38:43 +0100 (Sun, 11 Nov 2007) | 3 lines Fixed the last of the bugs in the generic_fns.spin.copy() function. ........ r3489 | bugman | 2007-11-11 13:44:34 +0100 (Sun, 11 Nov 2007) | 6 lines Removed the spin.read(), spin.sort(), and spin.write() user function from the redesign document. These can be implemented in a single user function class which handles molecules, residues, and spins together. ........ r3490 | bugman | 2007-11-11 17:46:23 +0100 (Sun, 11 Nov 2007) | 5 lines Added a new point in the data model redesign document - the new sequence user function class. The idea is that this is a class that handles the whole of the molecule-residue-spin structure. ........ r3491 | bugman | 2007-11-11 20:29:26 +0100 (Sun, 11 Nov 2007) | 3 lines Split the 'test_copy_within_molecule_fail' unit test in two, for the 2 failures. ........ r3492 | bugman | 2007-11-11 20:35:30 +0100 (Sun, 11 Nov 2007) | 5 lines Wrote 2 unit tests for the generic_fns.spin.create() function. One tests that the function works correctly, the second that it fails correctly. ........ r3493 | bugman | 2007-11-11 20:44:20 +0100 (Sun, 11 Nov 2007) | 3 lines Changed one of the spin creation unit tests to send the spin to a different molecule and residue. ........ r3494 | bugman | 2007-11-11 20:51:26 +0100 (Sun, 11 Nov 2007) | 3 lines [... 143 lines stripped ...]