(stream_spec)
| 122 | |
| 123 | |
| 124 | def get_stream_map(stream_spec): |
| 125 | if stream_spec is None: |
| 126 | stream_map = {} |
| 127 | elif isinstance(stream_spec, Stream): |
| 128 | stream_map = {None: stream_spec} |
| 129 | elif isinstance(stream_spec, (list, tuple)): |
| 130 | stream_map = dict(enumerate(stream_spec)) |
| 131 | elif isinstance(stream_spec, dict): |
| 132 | stream_map = stream_spec |
| 133 | return stream_map |
| 134 | |
| 135 | |
| 136 | def get_stream_map_nodes(stream_map): |
no outgoing calls
no test coverage detected
searching dependent graphs…