docs: def get_sm_by_grp(self):
          """
          :returns: a dictionary grp_id -> sm_id
          """
          return {grp.id: sm.ordinal for sm in self.source_models
                  for grp in sm.src_groups}