scikit-spectra icon indicating copy to clipboard operation
scikit-spectra copied to clipboard

__setattr__ metadataframe?

Open hughesadam87 opened this issue 11 years ago • 0 comments

Noticed that in pyparty, could comment this out and in fact, if it was not commented out, I got the attributed added to both self.dict and self.particle.dict.

After get testing and more stuff fixed, maybe try commenting it out?

From pyparty.MetaParticle

def __setattr__(self, attr, value):
    """ Defer attribute calls to to self.particle unless overwriting
        name, color etc... """

    if attr not in self.__dict__:
        setattr(self.particle, attr, value)
    else:
        self.__dict__[attr] = value

hughesadam87 avatar Dec 29 '13 00:12 hughesadam87