Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add asunique, change unique, change atom selection behaviour (#3368)
Fixes #3364 #2977 ## Work done in this PR - Add .asunique. This function (through ._asunique) now does all the grunt work in making unique groups and caching - Change .unique to always return a copy of the sorted unique group - Add .issorted - .unique is no longer cached. _cache['unique'] no longer exists - .sorted_unique and .unsorted_unique are now cached - .unsorted_unique and .sorted_unique can be the same group, which can be self - Added .cache_properties - uniqueness and sorted properties now propagate to children. They did not use to, the new function is called `_set_unique_caches_from` - Add ability to selectively sort `select_atoms` calls through `sorted` argument
- Loading branch information