本文整理汇总了Python中field.Field.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Field.__init__方法的具体用法?Python Field.__init__怎么用?Python Field.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类field.Field
的用法示例。
在下文中一共展示了Field.__init__方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self,name,type_byte_nr=1,length_byte_nr=1,length_compensation=0,type_=0,value=''):
Field.__init__(self, name, value)
self._type_byte_nr = type_byte_nr
self._length_byte_nr = length_byte_nr
self._type = type_
self._length_compensation = length_compensation
self._length = len(value) + length_compensation
示例2: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self, fdir, fname, parallel_run=None):
Raw = OpenFOAM_RawData(fdir, fname,
self.nperbin,
parallel_run=parallel_run)
Field.__init__(self, Raw)
self.axislabels = ['x','y','z']
self.plotfreq = self.Raw.Nave
示例3: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self, settings, name, data, allowed_range=None):
"""Set the allowed range if specified."""
self.start = None
self.end = None
if allowed_range is not None:
self.start, self.end = allowed_range
Field.__init__(self, settings, name, data)
示例4: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self,fdir,rectype='bins'):
self.vField = Channelflow_vField(fdir)
self.strainField = Channelflow_strainField(fdir)
Field.__init__(self,self.vField.Raw)
self.inherit_parameters(self.strainField)
self.labels = ["mag"]
self.nperbin = 1
示例5: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self):
"""
EXAMPLES::
sage: ContinuedFractionField()
Field of all continued fractions
"""
Field.__init__(self, self)
self._assign_names(('x'),normalize=False)
示例6: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self):
"""
EXAMPLES::
sage: ContinuedFractionField()
Field of all continued fractions
TESTS::
sage: CFF._repr_option('element_is_atomic')
False
"""
Field.__init__(self, self)
self._assign_names(('x'),normalize=False)
示例7: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self,fdir):
Raw = Serial_CFD_RawData(fdir, self.fname, self.dtype,
self.nperbin)
Field.__init__(self,Raw)
self.header = self.Raw.header
self.axislabels = ['x','y','z']
示例8: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self,name,value=''):
Field.__init__(self, name, value)
示例9: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self,name,length,value=''):
Field.__init__(self, name, value)
self._byte_nr = length
示例10: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self,conf):
Field.__init__(self,conf)
for fieldConf in conf['fields']:
field = Helper.createField(fieldConf['type'],fieldConf)
self.fields.append(field)
示例11: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self, fdir):
self.mField = LAMMPS_mField(fdir)
self.pField = LAMMPS_pField(fdir)
Field.__init__(self, self.pField.Raw)
self.inherit_parameters(self.pField)
示例12: __init__
# 需要导入模块: from field import Field [as 别名]
# 或者: from field.Field import __init__ [as 别名]
def __init__(self,name,bit_length,value=0):
Field.__init__(self, name, value)
self._bit_length = bit_length