本文整理汇总了Python中Obit类的典型用法代码示例。如果您正苦于以下问题:Python Obit类的具体用法?Python Obit怎么用?Python Obit使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Obit类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, name="no_name", corner=[0,0], dim=[0,0], peak=0.0, \
peakResid=0.0, RMSResid=0.0, fluxResid=0.0, models=[]):
self.this = Obit.new_FitRegion(name, corner, dim, peak, peakResid, \
RMSResid, fluxResid)
if len(models)>0: # Set models if given
self.nmodel = len(models)
self.models = models
self.myClass = myClass
示例2: PIsErr
def PIsErr(err):
""" Tells if an error condition exists
Returns True if error condition exists, else False
err = Python Obit Error/message stack
"""
################################################################
# Checks
if not OErrIsA(err):
raise TypeError,"err MUST be a Python ObitErr"
return Obit.isError(err.me) != 0
示例3: __init__
def __init__(self,pgmName, pgmNumber, AIPSuser,
numberAIPSdisk, AIPSdir, numberFITSdisk, FITSdir,
F_TRUE, F_FALSE, err) :
self.this = Obit.new_OSystem(pgmName, pgmNumber, AIPSuser,
numberAIPSdisk, AIPSdir,
numberFITSdisk, FITSdir,
F_TRUE, F_FALSE, err.me)
if err.isErr:
printErrMsg(err, "Error in Obit initialization")
# save info visible to python
self.pgmName = pgmName
self.pgmNumber = pgmNumber
# Rember who I am - can be only one
OSystem.ObitSys = self
示例4: printErrMsg
def printErrMsg(err, message="Error"):
""" Prints Obit error stack and throws runtime exception on error
err = Python Obit Error/message stack
message = message string for exception
"""
################################################################
# Checks
if not OErrIsA(err):
raise TypeError,"err MUST be a Python ObitErr"
ierr = Obit.isError(err.me)
Obit.ObitErrLog(err.me)
if ierr:
print message
raise OErr
示例5: __del__
def __del__(self):
if Obit!=None:
Obit.delete_UVRFIXize(self.this)
示例6: __init__
def __init__(self, name) :
self.this = Obit.new_UVRFIXize(name)
示例7: __del__
def __del__(self):
if Obit!=None:
Obit.delete_ImageInterp(self.this)
示例8: __del__
def __del__(self):
if Obit!=None:
Obit.delete_UVGSolve(self.this)
示例9: __init__
def __init__(self, name, serverURL, err):
self.this = Obit.new_ODisplay(name, serverURL, err.me)
self.serverURL = serverURL
示例10: __init__
def __init__(self, name) :
self.this = Obit.new_CleanImage(name)
示例11: __init__
def __init__(self, name, nTime, nSeries):
self.this = Obit.new_TimeFilter(name, nTime, nSeries)
示例12: __del__
def __del__(self):
if Obit!=None:
Obit.delete_FArray(self.this)
示例13: __init__
def __init__(self, name, naxis=[1]):
ndim = len(naxis)
self.this = Obit.new_FArray(name, ndim, naxis)
示例14: __del__
def __del__(self):
if Obit!=None:
Obit.delete_FInterpolate(self.this)
示例15: __init__
def __init__(self, name, array, desc, hwidth) :
self.this = Obit.new_FInterpolate(name, array.me, desc.me, hwidth)