def show_group(self, groupname):
        """display group members --- simple version for tests"""
        out = []
        try:
            group = self.get_group(groupname)
        except (NameError, LookupError):
            return groupname % 'Group %s not found'

        title = group.__name__
        members = dir(group)
        out = ['== %s: %i symbols ==' % (title, len(members))]
        for item in members:
            obj = getattr(group, item)
            dval = None
            if isinstance(obj, numpy.ndarray):
                if len(obj) > 10 or len(obj.shape)>1:
                    dval = "array<shape=%s, type=%s>" % (repr(obj.shape),
                                                         repr(obj.dtype))
            if dval is None:
                dval = repr(obj)
            out.append('  %s: %s' % (item, dval))
        self._larch.writer.write("%s\n" % '\n'.join(out))
dataset/ETHPy150Open xraypy/xraylarch/lib/symboltable.py/SymbolTable.show_group/swapped operands of `%`