Ejemplo n.º 1
0
def get_dataset_warnings(warnings: list) -> Warnings:
    count = len([
        warning for warning in warnings
        if warning.message_type != MessageType.REJECTED
    ])
    return Warnings(warnings=warnings,
                    name=f"Warnings ({count})",
                    anchor_id="warnings")
Ejemplo n.º 2
0
def get_dataset_warnings(warnings, count):
    return Warnings(warnings=warnings,
                    name=f"Warnings ({count})",
                    anchor_id="warnings")
Ejemplo n.º 3
0
def get_dataset_warnings(warnings, count):
    return Warnings(warnings=warnings,
                    name=f"Analysis Summary ({count})",
                    anchor_id="Analysis")
Ejemplo n.º 4
0
def get_dataset_warnings(warnings, count):
    return Warnings(
        warnings=warnings,
        name="Warnings ({count})".format(count=count),
        anchor_id="warnings",
    )