MCPcopy Create free account
hub / github.com/caelan/pddlstream / add_stream

Function add_stream

pddlstream/algorithms/visualization.py:214–220  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

212 return s_fact
213
214 def add_stream(stream):
215 color = FUNCTION_COLOR if isinstance(stream, FunctionResult) else STREAM_COLOR
216 s_stream = str(stream.instance) if isinstance(stream, FunctionResult) else str(stream)
217 graph.add_node(s_stream, style='rounded,filled', color=color)
218 # shape: oval, plaintext, polygon, rarrow, cds
219 # style: rounded, filled, bold
220 return s_stream
221
222 achieved_facts = set()
223 for stream in stream_plan:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected