Exemple #1
0
def mask_merge():
    """ merge JSON/Markdown from build/devices into build/mask"""

    gdspath = CONFIG["mask"]["gds"]
    write_labels(gdspath=gdspath)

    merge_json()
    merge_markdown()
    merge_test_metadata(gdspath=gdspath)
Exemple #2
0
def mask_merge(label_layer):
    """ merge JSON/Markdown from build/devices into build/mask"""

    gdspath = CONFIG["mask_gds"]
    write_labels(gdspath=gdspath, label_layer=label_layer)

    merge_json()
    merge_markdown()
    merge_test_metadata(config_path=CONFIG["config_path"])
Exemple #3
0
def write_mask():
    """ build and place does from config.yml """
    gdspath = CONFIG["mask"]["gds"]

    pb.build_does()
    # generate_does()

    top_level = place_from_yaml(CONFIG["config_path"])
    top_level.write(str(gdspath))

    write_labels(gdspath=gdspath)

    merge_json()
    merge_markdown()
    merge_test_metadata(gdspath=gdspath)
    return gdspath
def merge_metadata(gdspath,
                   labels_prefix="opt",
                   label_layer=pp.LAYER.LABEL,
                   **kwargs):
    mdpath = gdspath.with_suffix(".md")
    jsonpath = gdspath.with_suffix(".json")

    build_directory = gdspath.parent.parent
    doe_directory = build_directory / "doe"

    write_labels(gdspath=gdspath,
                 prefix=labels_prefix,
                 label_layer=label_layer)

    merge_json(doe_directory=doe_directory, jsonpath=jsonpath, **kwargs)
    merge_markdown(reports_directory=doe_directory, mdpath=mdpath)
    merge_test_metadata(gdspath, labels_prefix=labels_prefix)
Exemple #5
0
def merge_metadata(gdspath: PosixPath,
                   labels_prefix: str = "opt",
                   label_layer: Tuple[int, int] = pp.LAYER.LABEL,
                   **kwargs):
    """Merges all JSON metadata into a big JSON.

    Args:
        gdspath: GDSpath
        labels_prefix
        label_layer: layer for the labels
    """
    mdpath = gdspath.with_suffix(".md")
    jsonpath = gdspath.with_suffix(".json")

    build_directory = gdspath.parent.parent
    doe_directory = build_directory / "doe"

    write_labels(gdspath=gdspath,
                 prefix=labels_prefix,
                 label_layer=label_layer)

    merge_json(doe_directory=doe_directory, jsonpath=jsonpath, **kwargs)
    merge_markdown(reports_directory=doe_directory, mdpath=mdpath)
    merge_test_metadata(gdspath, labels_prefix=labels_prefix)