Feat(tools): Make 2 methods to explain capacities of compute and typing

This commit is contained in:
2018-10-01 08:54:15 +02:00
parent f3f93d31a7
commit ddab3cebad
2 changed files with 25 additions and 10 deletions

View File

@@ -77,10 +77,14 @@ def compute_capacities(node):
)
return lines
def describe_compute():
""" Explain which operation are handle by compue """
compute.__doc__ += "Implemented compute operations among MOs"
for op in OPERATIONS:
compute.__doc__ += f"\n{tabulate(compute_capacities(op), tablefmt='grid')} \n"
ans = "Implemented compute operations among MOs"
for op in OPERATIONS:
ans += "\n"
ans += tabulate(compute_capacities(op), tablefmt='grid')
return ans
# -----------------------------