Feat(tools): Make 2 methods to explain capacities of compute and typing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
# -----------------------------
|
||||
|
Reference in New Issue
Block a user