Closed hmillerbakewell closed 6 years ago
We should also make the messages more obvious
Done with the LOG simproc - takes a python function of the form (graph => string)
Made as a simproc so can be chained etc.
For example:
def print_num_vert(g):
return "Currently there are " + str(len(verts(g))) + " vertices."
register_simproc("basic-simp", REDUCE(simps) >> LOG(print_num_vert))
We have a user messages system that creates logs - it would be useful to expose this to the Simproc API for better feedback.