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

Function parse_vtk_module

Documentation/docs/vtk_documentation.py:28–39  ·  view source on GitHub ↗

Create a dictionary that holds the structure of the given vtk.module located at filepath. The return value is a dictionary(key,list(lines)) where key is the module keywords and the list(lines) the value corresponding to this key as a list of lines.

(filepath)

Source from the content-addressed store, hash-verified

26
27
28def parse_vtk_module(filepath):
29 """Create a dictionary that holds the structure of the given vtk.module
30 located at filepath. The return value is a dictionary(key,list(lines)) where key is
31 the module keywords and the list(lines) the value corresponding to this key
32 as a list of lines.
33 """
34 with open(filepath, "r") as f:
35 data = MODULE_FILE_PARSER[...].parseString(f.read())
36 structure = {}
37 for group in data:
38 structure[str(group[0])] = list(group[1])
39 return structure
40
41
42def gather_module_documentation(

Callers 1

Calls 3

strFunction · 0.85
listClass · 0.50
readMethod · 0.45

Tested by

no test coverage detected