Skip to content

linearviscomponent

linearviscomponent

Module for LinearVisComponent

Classes

LinearVisComponent

LinearVisComponent(
    component_name, vis_components, **kwargs
)

Bases: ExpVisComponent

Visualizes ExpVisComponents one after another

Source code in niceml/dashboard/components/linearviscomponent.py
def __init__(
    self,
    component_name: str,
    vis_components: List[ExpVisComponent],
    **kwargs,
):
    super().__init__(component_name=component_name, **kwargs)
    self.vis_components: List[ExpVisComponent] = vis_components
Functions
get_images
get_images()

gets all images from the subcomponents and returns them

Source code in niceml/dashboard/components/linearviscomponent.py
def get_images(self) -> List[Image.Image]:
    """gets all images from the subcomponents and returns them"""
    images: List[Image.Image] = []
    for vis_comp in self.vis_components:
        images += vis_comp.get_images()
    return images