Menu

Commit [r27705]  Maximize  Restore  History

Merged revisions 27704 via svnmerge from

svn+ssh://bugman@.../svn/relax/trunk

........
r27704 | bugman | 2015-02-20 16:02:29 +0100 (Fri, 20 Feb 2015) | 14 lines

Fix for bug #23295 (https://gna.org/bugs/?23295).

This is the PDB secondary structure HELIX and SHEET records not updating when merging molecules.
The problem was that the algorithm for changing the molecule numbers for the helix and sheet
metadata when calling the structure.read_pdb user function was far too simplistic. Therefore the
logic has been completely rewritten.

Now the helix and sheet metadata are stored in temporary data structures in the _parse_pdb_ss()
method. As the molecules are being read from the PDB records, new data structures containing the
original molecule numbers and new molecule numbers are created. The helix and sheet metadata is
then stored in the internal structural object via the pack_structs() method, and the molecule
indices of the metadata changed based on the two molecule number remapping data structures.
........

bugman 2015-02-20

changed /branches/nmrglue
changed /branches/nmrglue/lib/structure/internal/object.py
/branches/nmrglue
Directory.
/branches/nmrglue/lib/structure/internal/object.py Diff Switch to side-by-side view
Loading...
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.