Commit 12a7a145 authored by Jan Kiene's avatar Jan Kiene
Browse files

add help text and printout info

parent 6c17bb57
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -25,12 +25,14 @@ def generate_tests(exp_lab_pairs, run_parallel=True, create_cfg_only=False):
    """
    # get config paths for all given experiment/lab combis
    cfgs = [create_experiment_setup(exp, lab) for exp, lab in exp_lab_pairs]
    # flatten into single list
    cfgs = [c for cl in cfgs for c in cl]

    if create_cfg_only:
        print("Configs generated:")
        print("\n".join(["- " + cfg.name for cfg in cfgs]))
        return

    # flatten into single list
    cfgs = [c for cl in cfgs for c in cl]
    args = [Arguments(str(cfg)) for cfg in cfgs]
    apply_func_parallel(generate_test, zip(args), type="mp" if run_parallel else None)

@@ -129,7 +131,7 @@ def exp_lab_pair(arg):


if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser = argparse.ArgumentParser(description="Generate config files and process files for selecton experiments. Experiment names and lab ids must be given as comma-separated pairs (e.g. 'P800-5,b BS1534-4a,d ...')")
    parser.add_argument(
        "exp_lab_pairs",
        type=exp_lab_pair,