Source code for ads.pipeline.visualizer.text_renderer
#!/usr/bin/env python# -*- coding: utf-8; -*-# Copyright (c) 2022 Oracle and/or its affiliates.# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/fromtypingimportDict,Listfromads.pipeline.visualizer.baseimport(COMPLETE_STATUS,STATUS_TEXT_MAP,PipelineRenderer,RendererItem,RendererItemStatus,StepStatus,StepKind,)fromtabulateimporttabulate
[docs]defrender(self,steps:List[RendererItem],deps:Dict[str,List[RendererItem]],step_status:Dict[str,RendererItemStatus]=None,**kwargs,):""" Render pipeline step status in text. Parameters ---------- steps: List[RendererItem] A list of RendererItem objects. deps: Dict[str, List[RendererItem]] A dictionary mapping the key of a RendererItem to a list of RendererItem that this step depends on. step_status: Dict[str, RendererItemStatus], defaults to None. A dictionary mapping the key of a RendererItem to its current status. Returns ------- None """print(tabulate(self._render(steps=steps,deps=deps,step_status=step_status,**kwargs),headers="keys",))