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

Method updateBasePattern

Web/Python/vtkmodules/web/query_data_model.py:28–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 return self.__root
27
28 def updateBasePattern(self):
29 self.priority.sort(key=lambda item: item[1])
30 self.basePattern = ""
31 patternSeparator = ""
32 currentPriority = -1
33
34 for item in self.priority:
35 if currentPriority != -1:
36 if currentPriority == item[1]:
37 patternSeparator = "_"
38 else:
39 patternSeparator = "/"
40 currentPriority = item[1]
41 self.basePattern = "{%s}%s%s" % (
42 item[0],
43 patternSeparator,
44 self.basePattern,
45 )
46
47 def registerArgument(self, **kwargs):
48 """

Callers 8

computeDataPatternsMethod · 0.95
__getattr__Method · 0.95
startMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
registerViewPointMethod · 0.80

Calls 1

sortMethod · 0.45

Tested by

no test coverage detected