def __getattr__(self, name): if not isinstance(self, ImageMF): return "Bogus dude " + str(self.__class__) if name == "me": return Obit.ImageMF_Get_me(self.this) # Functions to return members if name == "List": if not self.ImageMFIsA(): raise TypeError("input MUST be a Python Obit ImageMF") out = InfoList.InfoList() out.me = Obit.ImageMFGetList(self.me) return out if name == "TableList": if not self.ImageMFIsA(): raise TypeError("input MUST be a Python Obit ImageMF") out = TableList.TableList("TL") out.me = Obit.ImageMFGetTableList(self.me) return out if name == "Desc": if not self.ImageMFIsA(): raise TypeError("input MUST be a Python Obit ImageMF") out = ImageDesc.ImageDesc("None") out.me = Obit.ImageMFGetDesc(self.me) return out if name == "FArray": return PGetFArray(self.me) if name == "Beam": return PGetBeam(self.me) if name == "PixBuf": if not self.ImageMFIsA(): raise TypeError("input MUST be a Python Obit ImageMF") fa = self.FArray return Obit.FArrayGetBuf(fa.me) raise AttributeError(str(name)) # Unknown
def PGetDesc(inFI): """ Get Image descriptor return ImageDesc reference * inFI = Python Obit input FInterpolate """ ################################################################ # Checks if not PIsA(inFI): raise TypeError("inFI MUST be a Python Obit FInterpolate") # out = ImageDesc.ImageDesc("None") out.me = Obit.FInterpolateGetImageDesc(inFI.me) return out
def __getattr__(self, name): if self.__class__ != ImageMF: return if name == "me": return Obit.ImageMF_me_get(self.this) # Functions to return members if name == "List": if not self.ImageMFIsA(): raise TypeError, "input MUST be a Python Obit ImageMF" out = InfoList.InfoList() out.me = Obit.InfoListUnref(out.me) out.me = Obit.ImageGetList(self.cast("ObitImage")) return out if name == "TableList": if not self.ImageMFIsA(): raise TypeError, "input MUST be a Python Obit ImageMF" out = TableList.TableList("TL") out.me = Obit.TableListUnref(out.me) out.me = Obit.ImageGetTableList(self.cast("ObitImage")) return out if name == "Desc": if not self.ImageMFIsA(): raise TypeError, "input MUST be a Python Obit ImageMF" out = ImageDesc.ImageDesc("None") out.me = Obit.ImageGetDesc(self.cast("ObitImage")) return out if name == "FArray": return PGetFArray(self.cast("ObitImage")) if name == "Beam": return PGetBeam(self.cast("ObitImage")) if name == "PixBuf": if not self.ImageMFIsA(): raise TypeError, "input MUST be a Python Obit ImageMF" fa = self.FArray return Obit.FArrayGetBuf(fa.me) raise AttributeError, str(name) # Unknown