當前位置: 首頁>>代碼示例>>Python>>正文


Python Obit類代碼示例

本文整理匯總了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
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:8,代碼來源:FitRegion.py

示例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
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:11,代碼來源:OErr.py

示例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
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:14,代碼來源:OSystem.py

示例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
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:15,代碼來源:OErr.py

示例5: __del__

 def __del__(self):
     if Obit!=None:
         Obit.delete_UVRFIXize(self.this)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:3,代碼來源:UVRFIXize.py

示例6: __init__

 def __init__(self, name) :
     self.this = Obit.new_UVRFIXize(name)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:2,代碼來源:UVRFIXize.py

示例7: __del__

 def __del__(self):
     if Obit!=None:
         Obit.delete_ImageInterp(self.this)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:3,代碼來源:ImageInterp.py

示例8: __del__

 def __del__(self):
     if Obit!=None:
         Obit.delete_UVGSolve(self.this)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:3,代碼來源:UVGSolve.py

示例9: __init__

 def __init__(self, name, serverURL, err):
     self.this = Obit.new_ODisplay(name, serverURL, err.me)
     self.serverURL = serverURL
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:3,代碼來源:ODisplay.py

示例10: __init__

 def __init__(self, name) :
     self.this = Obit.new_CleanImage(name)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:2,代碼來源:CleanImage.py

示例11: __init__

 def __init__(self, name, nTime, nSeries):
     self.this = Obit.new_TimeFilter(name, nTime, nSeries)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:2,代碼來源:TimeFilter.py

示例12: __del__

 def __del__(self):
     if Obit!=None:
         Obit.delete_FArray(self.this)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:3,代碼來源:FArray.py

示例13: __init__

 def __init__(self, name, naxis=[1]):
     ndim = len(naxis)
     self.this = Obit.new_FArray(name, ndim, naxis)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:3,代碼來源:FArray.py

示例14: __del__

 def __del__(self):
     if Obit!=None:
         Obit.delete_FInterpolate(self.this)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:3,代碼來源:FInterpolate.py

示例15: __init__

 def __init__(self, name, array, desc, hwidth) :
     self.this = Obit.new_FInterpolate(name, array.me, desc.me, hwidth)
開發者ID:kernsuite-debian,項目名稱:obit,代碼行數:2,代碼來源:FInterpolate.py


注:本文中的Obit類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。