当前位置: 首页>>代码示例>>Python>>正文


Python AT.__init__方法代码示例

本文整理汇总了Python中admit.AT.AT.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python AT.__init__方法的具体用法?Python AT.__init__怎么用?Python AT.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在admit.AT.AT的用法示例。


在下文中一共展示了AT.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self,**keyval):
     keys = {
            }
     AT.__init__(self,keys,keyval)
     self._version = "0.0.1"
     self.set_bdp_in([(Image_BDP,1,bt.REQUIRED),
                      (CubeStats_BDP,1,bt.OPTIONAL)])
     self.set_bdp_out([])
开发者ID:teuben,项目名称:admit,代码行数:10,代码来源:FeatureList_AT.py

示例2: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self,**keyval):
     keys = {"file" : "",      
             "touch": True,   
             "exist": True}   
     AT.__init__(self,keys,keyval)
     self._version   = "1.0.0"
     self.set_bdp_in ([(File_BDP,1,bt.REQUIRED)])
     self.set_bdp_out([(File_BDP,1)])
开发者ID:teuben,项目名称:admit,代码行数:10,代码来源:Flow11_AT.py

示例3: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self, **keyval):
     keys = {
         "basename"   : "",     # defaults to BDP derived
     }
     AT.__init__(self,keys,keyval)
     self._version = "1.0.0"
     self.set_bdp_in([(Image_BDP,     1, bt.REQUIRED)])
     self.set_bdp_out([])
开发者ID:teuben,项目名称:admit,代码行数:10,代码来源:Export_AT.py

示例4: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self, **keyval):
     keys = {"equalize" : False,  # default to no equalization and no regridding
             "pad"      : 5,      # default to 5 channels on either side
             }
     AT.__init__(self, keys, keyval)
     self._version = "1.0.2"
     self.set_bdp_in([(Image_BDP,     1, bt.REQUIRED),
                      (LineList_BDP,  1, bt.REQUIRED)])
     self.set_bdp_out([(LineCube_BDP, 0)])
开发者ID:teuben,项目名称:admit,代码行数:11,代码来源:LineCube_AT.py

示例5: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self,**keyval):
     keys = {"file"  : "",      
             "m"     :  0,
             "n"     :  2,
             "touch" : False,   
             "exist" : False} 
     AT.__init__(self,keys,keyval)
     self._version   = "1.0.0"
     self.set_bdp_in ([(File_BDP,self._keys.pop('m'),bt.REQUIRED)])
     self.set_bdp_out([(File_BDP,1), (File_BDP,0)])
开发者ID:teuben,项目名称:admit,代码行数:12,代码来源:FlowMN_AT.py

示例6: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self,**keyval):
     keys = {"robust"  : [],         # signal rejection parameters
             "ppp"     : False,      # PeakPointPlot
             "maxvrms" : 2.0,        # clip varying RMS (-1 to skip)
             "psample" : -1,         # if > 0, spatial sampling rate for PeakStats
     }
     AT.__init__(self,keys,keyval)
     self._version       = "1.0.6"
     self.set_bdp_in([(Image_BDP,      1, bt.REQUIRED)])
     self.set_bdp_out([(CubeStats_BDP, 1)])
开发者ID:teuben,项目名称:admit,代码行数:12,代码来源:CubeStats_AT.py

示例7: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self,**keyval):
     keys = {"numsigma" : 3.0,    # N-sigma
             "range"    : [],     # optional channel range
             "nchan"    : 0,      # number of channels around the channel where the peak is
            }
     AT.__init__(self,keys,keyval)
     self._version = "1.0.1"
     self.set_bdp_in([(Image_BDP,1,bt.REQUIRED),
                      # @todo optional 2nd PVSlice can be used to draw the template from
                      (CubeStats_BDP,1,bt.REQUIRED)])
     self.set_bdp_out([(PVCorr_BDP,1)])
开发者ID:teuben,项目名称:admit,代码行数:13,代码来源:PVCorr_AT.py

示例8: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
    def __init__(self, **keyval):
        keys = {
           "do_spatial_regrid": True,
           "pix_scale"    : -1.0,     
           "do_freq_regrid": False,
           "chan_width"    : -1.0          
        }

        AT.__init__(self,keys,keyval)
        self._version = "1.0.0"
        self.set_bdp_in([(SpwCube_BDP,0,bt.REQUIRED)])
        self.set_bdp_out([(SpwCube_BDP,0)])
开发者ID:teuben,项目名称:admit,代码行数:14,代码来源:Regrid_AT.py

示例9: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self,**keyval):
     keys = {"pos"     : [],    # one or more pairs of int's or ra/dec strings
             "sources" : [0],   # select which sources from a SourceList
             "xaxis"   : "",    # currently still ignored
     }
     AT.__init__(self,keys,keyval)
     self._version       = "1.0.3"
     self.set_bdp_in( [(Image_BDP,       1,bt.REQUIRED),     # 0: cube: SpwCube or LineCube allowed
                       (CubeStats_BDP,   1,bt.OPTIONAL),     # 1: stats, uses maxpos
                       (Moment_BDP,      1,bt.OPTIONAL),     # 2: map, uses the max in this image as pos=
                       (SourceList_BDP,  1,bt.OPTIONAL)])    # 3: source list, for positions
     self.set_bdp_out([(CubeSpectrum_BDP,1)])
开发者ID:teuben,项目名称:admit,代码行数:14,代码来源:CubeSpectrum_AT.py

示例10: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
    def __init__(self, **keyval):
        keys = {
           "bmaj"    : {'value': -1.0, 'unit': 'arcsec'},
           "bmin"    : {'value': -1.0, 'unit': 'arcsec'},
           "bpa"     :  -1.0,
           "velres"  : {'value': -1.0, 'unit': 'pixel'},
        }

        AT.__init__(self,keys,keyval)
        self._version = "1.0.5"
        self.set_bdp_in([(SpwCube_BDP,0,bt.REQUIRED)])
        self.set_bdp_out([(SpwCube_BDP,0)])
开发者ID:teuben,项目名称:admit,代码行数:14,代码来源:Smooth_AT.py

示例11: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self, **keyval):
     keys = {
         "numsigma"   : 2.0,    # default to 2.0*sigma cutoff
         "sigma"      : -1.0,   # default to CubeStats rms(freq)
         "linesum"    : True,   # Select line segments for from the (optional) LineList
         "pad"        : 5,      # number of channels to pad onto the line segments from LineList
     }
     AT.__init__(self,keys,keyval)
     self._version = "1.0.2"
     self.set_bdp_in([(Image_BDP,     1, bt.REQUIRED),
                      (CubeStats_BDP, 1, bt.OPTIONAL),
                      (LineList_BDP,  1, bt.OPTIONAL)])    # LineSegment_BDP also allowed
     self.set_bdp_out([(Moment_BDP,1)])
开发者ID:teuben,项目名称:admit,代码行数:15,代码来源:CubeSum_AT.py

示例12: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
    def __init__(self, **keyval):
        keys = {"numsigma" : 6.0,          # default to 5 sigma
                "sigma"    : -1.0,         # default to grab sigma from CubeStats BDP
                "region"   : "",           # default to entire map
                "robust"   : ['hin',1.5],  # default to classic MAD
                "snmax"    : 35.0,         # default to limit dynamic range to 100
               }

        AT.__init__(self,keys,keyval)
        self._version = "1.0.5"
        self.set_bdp_in([(Image_BDP,2,bt.OPTIONAL),
                         (CubeStats_BDP,1,bt.OPTIONAL)])
        self.set_bdp_out([(SourceList_BDP, 1)])
开发者ID:teuben,项目名称:admit,代码行数:15,代码来源:SFind2D_AT.py

示例13: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
    def __init__(self,**keyval):
        # set the key words up with default values
        keys = {"yourname": "",
                "planet"  : ""}
        AT.__init__(self,keys,keyval)
        self._version = "1.0.0"

        # must call even if task takes no input bdp, so that
        # various internal AT values are set correctly
        self.set_bdp_in() 

        self.set_bdp_out([(HelloWorld_BDP,1)])
        self._bdp_in_order_list = []
        self._bdp_in_order_type = []
开发者ID:teuben,项目名称:admit,代码行数:16,代码来源:HelloWorld_AT.py

示例14: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
 def __init__(self, **keyval):
     keys = {
         "contsub"    : [],      # see also Ingest_AT (although deprecated there now)
         "pad"        : 5,       # see also LineCube_AT
         "fitorder"   : 0,       # polynomial order
     }
     AT.__init__(self,keys,keyval)
     self._version = "1.0.2"
     self.set_bdp_in([(SpwCube_BDP,      1, bt.REQUIRED),        # input spw cube 
                      (LineList_BDP,     1, bt.OPTIONAL),        # will catch SegmentList as well
                     ])
     self.set_bdp_out([(SpwCube_BDP,  1),                        # output line cube (.lim)
                       (Image_BDP,    1)],                       # output cont map  (.cim)
                     )
开发者ID:teuben,项目名称:admit,代码行数:16,代码来源:ContinuumSub_AT.py

示例15: __init__

# 需要导入模块: from admit.AT import AT [as 别名]
# 或者: from admit.AT.AT import __init__ [as 别名]
    def __init__(self, **keyval):
        keys = {
            "chans"     : [],          # 0-based channel range, e.g. [5,10]
            "normalize" : False, 
            "method"    : ("", {"key1": 0, "key2": 1.0, "key3": "abc"}),
            "cmap"      : "jet",
        }
        AT.__init__(self,keys,keyval)
        self._version = "1.0.1"
        self.set_bdp_in([(Image_BDP,     0, bt.REQUIRED)])     # 2 or more should be input

        # @TODO: Why is OverlapIntegral_BDP not used here, 
        # since the output is a Table and an Image
        self.set_bdp_out([(Image_BDP,1)])                      # 1 is output
开发者ID:teuben,项目名称:admit,代码行数:16,代码来源:OverlapIntegral_AT.py


注:本文中的admit.AT.AT.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。