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


Python Component._configure方法代码示例

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


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

示例1: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
     Component._configure(self)
     self.logfile = self.inventory.logfile
     errlogfile = self.inventory.errlogfile
     if errlogfile == '': errlogfile = self.logfile
     self.errlogfile = errlogfile
     return
开发者ID:danse-inelastic,项目名称:pyregui,代码行数:9,代码来源:Launcher.py

示例2: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
    def _configure(self):
        Component._configure(self)

        self.host = self.inventory.host
        self.port = self.inventory.port

        return
开发者ID:Alex-Song,项目名称:vmaf,代码行数:9,代码来源:Session.py

示例3: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Setup members using inventory.
   """
   Component._configure(self)
   pylith.perf.Material.Material.__init__(self, self.inventory.label, self.inventory.size)
   return
开发者ID:youngsolar,项目名称:pylith,代码行数:9,代码来源:memory_usage.py

示例4: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Set members from inventory.
   """
   Component._configure(self)
   self.csDest = self.inventory.csDest
   self.csSrc = self.inventory.csSrc
   return
开发者ID:koson,项目名称:spatialdata,代码行数:10,代码来源:ChangeCoordSys.py

示例5: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Set attributes based on inventory.
   """
   Component._configure(self)
   ModuleTimeHistory.label(self, self.inventory.label)
   ModuleTimeHistory.filename(self, self.inventory.filename)
   return
开发者ID:geodynamics,项目名称:spatialdata,代码行数:10,代码来源:TimeHistory.py

示例6: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Setup members using inventory.
   """
   Component._configure(self)
   self.name = self.inventory.name
   self.units = self.inventory.units
   self.shapers = self.inventory.shapers
   return
开发者ID:koson,项目名称:spatialdata,代码行数:11,代码来源:Value.py

示例7: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Setup members using inventory.
   """
   Component._configure(self)
   self.dataDim = self.inventory.dataDim
   self.reader = self.inventory.reader
   self.coordsys = self.inventory.coordsys
   return
开发者ID:koson,项目名称:spatialdata,代码行数:11,代码来源:Geometry.py

示例8: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Setup members using inventory.
   """
   Component._configure(self)
   self.projection(self.inventory.projection)
   self.units(self.inventory.units)
   self.projOptions(self.inventory.projOptions)
   return
开发者ID:koson,项目名称:spatialdata,代码行数:11,代码来源:Projector.py

示例9: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
    def _configure(self):
        Component._configure(self)
        self.username = self.inventory.username
        self.passwd = self.inventory.passwd
        self.ticket = self.inventory.ticket
        self.attempts = self.inventory.attempts

        self.ipa = self.inventory.ipa

        return
开发者ID:bmi-forum,项目名称:bmi-pyre,代码行数:12,代码来源:Sentry.py

示例10: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Set members based using inventory.
   """
   Component._configure(self)
   self.header = self.inventory.header
   self.objname = self.inventory.objname
   self.namespace = self.inventory.namespace
   self.parent = self.inventory.parent
   return
开发者ID:jjle,项目名称:pylith,代码行数:12,代码来源:CppData.py

示例11: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Setup members using inventory.
   """
   Component._configure(self)
   self.dbValue = self.inventory.dbValue
   self.operand = self.inventory.operand
   self.db = self.inventory.db
   self.defaultValue = self.inventory.default
   return
开发者ID:koson,项目名称:spatialdata,代码行数:12,代码来源:Shaper.py

示例12: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Set members using inventory.
   """
   try:
     Component._configure(self)
     self.filename(self.inventory.filename)
   except ValueError, err:
     aliases = ", ".join(self.aliases)
     raise ValueError("Error while configuring spatial database reader "
                      "(%s):\n%s" % (aliases, err.message))
开发者ID:koson,项目名称:spatialdata,代码行数:13,代码来源:SimpleIO.py

示例13: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Set attributes based on inventory.
   """
   try:
     Component._configure(self)
     self.label(self.inventory.label)
   except ValueError, err:
     aliases = ", ".join(self.aliases)
     raise ValueError("Error while configuring spatial database "
                      "(%s):\n%s" % (aliases, err.message))
开发者ID:geodynamics,项目名称:spatialdata,代码行数:13,代码来源:SpatialDBObj.py

示例14: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
     """
         Configure the component
     """
     Component._configure(self)
     
     # Add the inventory items to the list of attributes
     for name in model.params: 
         line = "self.%s = self.inventory.%s" % (name, name)
         exec line in locals()
         continue
     return
开发者ID:mcvine,项目名称:sansmodels,代码行数:14,代码来源:ScatteringIntensityFactory.py

示例15: _configure

# 需要导入模块: from pyre.components.Component import Component [as 别名]
# 或者: from pyre.components.Component.Component import _configure [as 别名]
 def _configure(self):
   """
   Set members based using inventory.
   """
   try:
     Component._configure(self)
     self.filename = self.inventory.filename
     self.commentDelimiter = self.inventory.commentDelimiter
   except ValueError, err:
     aliases = ", ".join(self.aliases)
     raise ValueError("Error while configuring points list "
                      "(%s):\n%s" % (aliases, err.message))
开发者ID:jjle,项目名称:pylith,代码行数:14,代码来源:PointsList.py


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