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)
| 26 | |
| 27 | |
| 28 | def 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 | |
| 42 | def gather_module_documentation( |
no test coverage detected