Menu

SVN archive Commit Log


Commit Date  
[r3171] by bugman

Bug fix for the prototype copying.

These changes cause the 'test_copy' and 'test_copy_current' unit tests of 'test_pipe.py' to pass.

The prototype '__copy__()' method has been renamed to '__clone__()' as '__copy__()' is reserved as a
replacement method for the 'copy' method of the 'copy' module. As the 'deepcopy' method was not
copying all of the objects of the pipe container correctly, the '__deepcopy__() replacement method
has been added to the prototype base class.

All subclassing of 'ListType' and 'DictType' have been replaced by 'list' and 'dict'.

2007-03-13 07:49:52 Tree
[r3170] by bugman

Implemented the 'pipe.copy()' user function.

The 'generic_fns.pipes.copy()' function and the three unit tests 'test_copy', 'test_copy_current',
'test_copy_fail' have been added.

2007-03-13 03:48:29 Tree
[r3169] by bugman

Updated and fixed the 'pipe.delete()' user function.

2007-03-13 03:48:03 Tree
[r3168] by bugman

Created a prototype design pattern as a base class with the __copy__() method.

The prototype __copy__() method simply returns a deepcopy of the object. The PipeContainer,
SpinContainer, ResidueContainer, and MoleculeContainer classes now inherit from the prototype class.

2007-03-13 03:47:39 Tree
[r3167] by bugman

Created the pipe.list() user function for printing a list of all the data pipes.

2007-03-13 03:46:31 Tree
[r3166] by bugman

Created the pipe.switch() user function for switching between data pipes.

Two unit tests were created for the new code - test_switch() and test_switch_fail().

2007-03-13 03:45:47 Tree
[r3165] by bugman

Created the new pipe.current() user function.

2007-03-13 03:45:17 Tree
[r3164] by bugman

The pipe.create() user function now works!

The prompt.pipe module now import the 'generic_fns.pipes' module and executes the create() function.
The system/functional test for this user function now passes and has been updated with runs renamed
to pipes.

2007-03-13 03:43:51 Tree
[r3163] by bugman

Removed the functions not used by relax from the 'generic_fns.pipes' module.

The functions 'eliminate_unused_pipes()' and 'list_of_pipes()' have been deleted as they are not
used anywhere within relax. The unit test for the 'eliminate_unused_pipes()' has also been deleted.

2007-03-13 03:41:54 Tree
[r3162] by bugman

Fixed the setting of the current data pipe so that the 'test_deletion()' unit test passes.

The current data pipe was not being set to None by the 'generic_fns.pipes.delete()' if the deleted
pipe is the current pipe.

2007-03-13 03:41:19 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.