MCPcopy Create free account
hub / github.com/audeering/opensmile / main

Function main

scripts/conf2dot.py:202–213  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

200
201
202def main(args: argparse.Namespace):
203 conf_file = ConfFile(args.input)
204 if args.format.lower() == "dot":
205 with open(args.output, "w") as f:
206 generate_dot_file(conf_file.sections, f, args.omit_levels)
207 else:
208 ensure_graphviz_available()
209 with io.StringIO() as f:
210 generate_dot_file(conf_file.sections, f, args.omit_levels)
211 f.seek(0)
212 dot_file = f.read()
213 subprocess.run(["dot", "-T", args.format, "-o", args.output], input=dot_file, universal_newlines=True)
214
215
216if __name__ == "__main__":

Callers 1

conf2dot.pyFile · 0.70

Calls 4

ConfFileClass · 0.85
generate_dot_fileFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected