MCPcopy Create free account
hub / github.com/Kitware/VTK / AddValue

Method AddValue

Utilities/Maintenance/VTKTestsByLanguage.py:111–123  ·  view source on GitHub ↗

:param: fn - the dictionary :param: key - the key :param: v - the value to add to the set of values in fn[key].

(self, fn, key, v)

Source from the content-addressed store, hash-verified

109# return '\n'.join(map(str, nonComments)), '\n'.join(map(str, comments))
110
111 def AddValue(self, fn, key, v):
112 '''
113 :param: fn - the dictionary
114 :param: key - the key
115 :param: v - the value to add to the set of values in fn[key].
116 '''
117 try:
118 values = fn[key]
119 values.add(v)
120 fn[key] = values
121 except KeyError:
122 # Key is not present
123 fn[key] = set([v])
124
125 def WalkPaths(self, option=0):
126 """

Callers 13

WalkPathsMethod · 0.95
TestArraySerializationFunction · 0.80
TestArrayUserTypesFunction · 0.80
TestArrayAPISparseFunction · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80
ArraySparseArrayToTableFunction · 0.80
ArrayTransposeMatrixFunction · 0.80
RequestDataMethod · 0.80
ArrayMatricizeArrayFunction · 0.80

Calls 2

setFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected