Menu

Commit [r27623]  Maximize  Restore  History

Implementation of methods for sorting sequence data in the internal structural object.

The information is sorted in the molecule container level using the new MolContainer._sort() private
method. This uses the _sort_key() helper method which determines what the new order should be.
This is used as the 'key' argument for the Python sort() method. Instead of list shuffling, new
lists in the correct order are created. Although not memory efficient, this might be faster than
shuffling.

bugman 2015-02-11

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