Source code for icolos.utils.general.citation_generator

import os
from typing import List
from icolos.core.workflow_steps.step import StepBase
from icolos.utils.enums.step_enums import StepBaseEnum

_SBE = StepBaseEnum


[docs]class ConsoleColours: HEADER = "\033[95m" BLUE = "\033[94m" CYAN = "\033[96m" GREEN = "\033[92m" RED = "\033[93m" FAIL = "\033[91m" ENDC = "\033[0m" ORANGE = "\033[0;33m" BOLD = "\033[1m" UNDERLINE = "\033[4m" BLINKING = "\33[5m"
[docs]def add_citation( step_type: str, workflow_step_types: List[str], citations: List[str], citation_string: str, ): if ( any( [ True for w_step_type in workflow_step_types if step_type.upper() in w_step_type ] ) or step_type == "default" ): citations.append(citation_string)