

def _groupitems(obj, _larch=None, **kws):
    'returns group items as if items() method of a dict'
    if (_larch is None):
        raise Warning('cannot run subgroups() -- larch broken?')
    if isgroup(kws):
        return obj._members().items()
    else:
        raise Warning('group_items() argument must be a group')

dataset/ETHPy150Open xraypy/xraylarch/lib/builtins.py _groupitems/VarMisuse@38/84 `obj`->`kws`