@classmethod
    def fromXML(cls, element, parent):
        kw = loadxml.parseAttributes(element)
        parent.layout = layout = cls(parent, **kw)

        for child in element.getchildren():
            loadxml.getConstructor(child.tag)(child, layout.parent)
        return layout
Test for detrending evoked data
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/layouts.py/Layout.fromXML--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_evoked.py/test_evoked_detrend