@classmethod
    def fix_barndoors(cls):
        for light in pm.ls(type='spotLight'):
            # calculate scale
            cone_angle = light.getAttr('coneAngle')
            penumbra_angle = light.getAttr('penumbraAngle')
            if penumbra_angle < 0:
                light.setAttr(
                    'coneAngle',
                    max(cone_angle + penumbra_angle, 0.1)
                )
            else:
                light.setAttr(
                    'coneAngle',
                    max(cone_angle - penumbra_angle, 0.1)
                )
fixes the barndoors on scene lights created in MtoA 1.0 to match the
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/toolbox.py/Render.fix_barndoors