def __init__(self): self.Ct = dm15temp2.st_template() self.St = SwiftTemp.st_template() for band in ['u','B','V','g','r','i','Y','J','H','K','J_K','H_K']: self.__dict__[band] = self.Ct.__dict__[band] self.__dict__['e'+band] = self.Ct.__dict__['e'+band] for band in ['UVM2','UVW1','UVW2']: self.__dict__[band] = self.St.__dict__[band] self.__dict__['e'+band] = self.St.__dict__['e'+band]
def __setstate__(self, state): if 'St' not in state: state['St'] = SwiftTemp.st_template() self.__dict__ = state