def spec_getmrg2group(fname, scans=None, cntx=None, csig=None, cmon=None, csec=None, norm=None, action='average', _larch=None):
    if _larch is None:
        raise Warning("larch broken?")

    s = SpecfileData(fname)
    group = _larch.symtable.create_group()
    group.__name__ = 'SPEC data file {0}; scans {1}; action {2}'.format(fname, scans, action)
    x, y = s.get_mrg(scans=scans, cntx=cntx, csig=csig, cmon=cmon, csec=csec, norm=norm, action=action)
    setattr(group, 'x', x)
    setattr(group, 'y', y)

    return group
The plugin subclass must have a name
dataset/ETHPy150Open xraypy/xraylarch/plugins/io/specfiledata.py/spec_getmrg2group--crossover with--dataset/ETHPy150Open biicode/bii-server/rest/bottle_plugins/generic_blocker_bottle_plugin.py/GenericBlockerBottlePlugin.name