svn+ssh://bugman@.../svn/relax/trunk
........
r26380 | bugman | 2014-10-23 14:27:05 +0200 (Thu, 23 Oct 2014) | 6 lines
Created the Structure.test_bug_22861_PDB_writing_chainID_fail system test.
This is to catch bug #22861 (https://gna.org/bugs/?22861), the chain IDs in the structure.write_pdb
user function PDB files are incorrect after calling structure.delete.
........
r26381 | bugman | 2014-10-23 14:45:25 +0200 (Thu, 23 Oct 2014) | 13 lines
The structure.write_pdb user function can now handle empty molecules.
This fixes bug #22861 (https://gna.org/bugs/?22861), the chain IDs in the structure.write_pdb user
function PDB files are incorrect after calling structure.delete.
To handle this consistently, the internal structural object ModelContainer.mol_loop() generator
method has been created. This loops over the molecules, yielding those that are not empty. The
MolContainer.is_empty() method has been fixed by not checking for the molecule name, as that remains
after the structure.delete user function call while all other information has been removed. And
finally the write_pdb() structural object method has been modified to use the mol_loop() method
rather than performing the loop itself.
........
r26382 | bugman | 2014-10-23 14:55:09 +0200 (Thu, 23 Oct 2014) | 6 lines
Small modification of the Structure.test_bug_22861_PDB_writing_chainID_fail system test.
File metadata is now being set to demonstrate that the structure.delete user function does not
remove this once there is no more data left for the molecule.
........
r26383 | bugman | 2014-10-23 14:56:54 +0200 (Thu, 23 Oct 2014) | 8 lines
Fix for the structure.delete user function for molecule metadata once no more data exists.
This relates to bug #22861 (https://gna.org/bugs/?22861), the chain IDs in the structure.write_pdb
user function PDB files are incorrect after calling structure.delete.
The metadata, when it exists, is now deleted for the molecule once no more data is present.
........