

def scale(self, sc, scaleset=set([]), exclude=set([])):
    'for all tags not in the exclude set, scale all attributes whose names are in scaleset by the given factor'
    if (self.name not in exclude):
        for (name, val) in self.tag.items():
            if (name in scaleset):
                self.tag[val] = (val * sc)
    if self.hasSubtag():
        for subtag in self.tag['Icontain']:
            subtag.scale(sc, scaleset, exclude)

dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/tools/xmltools.py XMLstruct.scale/VarMisuse@72/120 `name`->`val`