本文整理汇总了Python中coverage_model.parameter.ParameterDictionary.itervalues方法的典型用法代码示例。如果您正苦于以下问题:Python ParameterDictionary.itervalues方法的具体用法?Python ParameterDictionary.itervalues怎么用?Python ParameterDictionary.itervalues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类coverage_model.parameter.ParameterDictionary
的用法示例。
在下文中一共展示了ParameterDictionary.itervalues方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _new_coverage
# 需要导入模块: from coverage_model.parameter import ParameterDictionary [as 别名]
# 或者: from coverage_model.parameter.ParameterDictionary import itervalues [as 别名]
def _new_coverage(self, root_dir, persistence_guid, name, reference_coverage_locs, parameter_dictionary, complex_type, reference_coverage_extents={}):
reference_coverage_locs = reference_coverage_locs or [] # Can be empty
# Coverage doesn't exist, make a new one
if name is None:
raise SystemError('\'reference_coverages\' and \'name\' cannot be None')
if not isinstance(name, basestring):
raise TypeError('\'name\' must be of type basestring')
self.name = name
if parameter_dictionary is None:
parameter_dictionary = ParameterDictionary()
# Must be in 'a' for a new coverage
self.mode = 'a'
self._reference_covs = collections.OrderedDict()
if not hasattr(reference_coverage_locs, '__iter__'):
reference_coverage_locs = [reference_coverage_locs]
self._persistence_layer = PostgresPersistenceLayer(root_dir,
persistence_guid,
name=self.name,
mode=self.mode,
param_dict=parameter_dictionary,
rcov_locs=reference_coverage_locs,
rcov_extents=reference_coverage_extents,
complex_type=complex_type,
coverage_type='complex',
version=self.version)
for pc in parameter_dictionary.itervalues():
self.append_parameter(pc[1])