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 __init__(self): self.Pt = dm15temp.template() self.Ct = dm15temp2.dm15_template() self.St = SwiftTemp.dm15_template() self.Nt = NIRtemp.dm15_template() for band in ['Bs','Vs','Rs','Is']: self.__dict__[band] = self.Pt.__dict__[band[0]] self.__dict__['e'+band] = self.Pt.__dict__['e'+band[0]] for band in ['u','B','V','g','r','i']: 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] for band in ['Y','J','H','K']: self.__dict__[band] = self.Nt.__dict__[band] self.__dict__['e'+band] = self.Nt.__dict__['e'+band]
def __setstate__(self, state): if 'St' not in state: state['St'] = SwiftTemp.dm15_template() self.__dict__ = state