Skip to content

Documentation for ToMeDa

tomeda.t01_gather_metadata

logger module-attribute

logger: TraceLogger = getLogger(__name__)

main

main(
    dataset: TomedaBaseClass, param: TomedaParameter
) -> None
Source code in tomeda/t01_gather_metadata.py
10
11
12
13
14
15
16
17
18
19
def main(dataset: TomedaBaseClass, param: TomedaParameter) -> None:
    dataset.validate_gatherer_file(
        file=param.gatherer_file, collector_root=param.collector_root
    )

    if param.check_recommendations:
        dataset.check_if_recommendations_are_met()

    if param.output:
        dataset.write_json(output_file=param.output)