diff --git a/MDANSE/Src/MDANSE/Framework/Configurators/GroupingLevelConfigurator.py b/MDANSE/Src/MDANSE/Framework/Configurators/GroupingLevelConfigurator.py index 56be5ddfaa..7329467de1 100644 --- a/MDANSE/Src/MDANSE/Framework/Configurators/GroupingLevelConfigurator.py +++ b/MDANSE/Src/MDANSE/Framework/Configurators/GroupingLevelConfigurator.py @@ -110,7 +110,7 @@ def configure(self, value): trajConfig = self._configurable[self._dependencies["trajectory"]] atomSelectionConfig = self._configurable[self._dependencies["atom_selection"]] - allAtoms = sorted_atoms(trajConfig["chemical_system"].atom_list) + allAtoms = sorted_atoms(trajConfig["instance"].chemical_system.atom_list) groups = collections.OrderedDict() for i in range(atomSelectionConfig["selection_length"]): @@ -118,9 +118,7 @@ def configure(self, value): el = atomSelectionConfig["elements"][i][0] mass = atomSelectionConfig["masses"][i][0] at = allAtoms[idx] - lvl = LEVELS[value][ - at.top_level_chemical_entity().__class__.__name__.lower() - ] + lvl = LEVELS[value][at.top_level_chemical_entity.__class__.__name__.lower()] parent = self.find_parent(at, lvl) d = groups.setdefault(parent, {}) d.setdefault("indexes", []).append(idx)