Commit 2a6ae018 authored by Remi Perenon's avatar Remi Perenon
Browse files

Fixing error in atom selections

parent e947e209
......@@ -86,7 +86,7 @@ class AtomSelectionConfigurator(IConfigurator):
trajConfig = self._configurable[self._dependencies['trajectory']]
atoms = sorted(trajConfig["universe"].atomList(), key = operator.attrgetter('index'))
selectedAtoms = [atoms[idx] for idx in indexes]
selectedAtoms = [atoms[idx] for idx in self["flatten_indexes"]]
self["selection_length"] = len(self["flatten_indexes"])
self['indexes'] = [[idx] for idx in self["flatten_indexes"]]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment