def __setattr__(self, attribute, value):
        if self.isfinal():
            raise Exception("Attribute %s can no longer be changed" % attribute)
        if attribute in ['luminosity', 'temperature', 'spectrum']:
            self.sources['star'].__setattr__(attribute, value)
            return
        elif ['radius', 'limb'] in attribute:
            for source in self.sources:
                self.sources[source].__setattr__(attribute, value)
        FreezableClass.__setattr__(self, attribute, value)
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/model/analytical_yso_model.py/Star.__setattr__/swapped operands of `in`