예제 #1
0
def write_mask_labels(gdspath, label_layer=66, label_purpose=0):
    """ find test and measurement labels """
    if gdspath is None:
        gdspath = CONFIG["mask"]["gds"]

    write_labels(gdspath=gdspath,
                 label_layer=label_layer,
                 label_purpose=label_purpose)
예제 #2
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)
예제 #3
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"])
예제 #4
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
예제 #5
0
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)
예제 #6
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)
예제 #7
0
def write_mask_labels(gdspath, label_layer):
    """Find test and measurement labels."""
    if gdspath is None:
        gdspath = CONFIG["mask_gds"]

    write_labels(gdspath=gdspath, label_layer=label_layer)
예제 #8
0
파일: pf.py 프로젝트: jaspreetj/gdsfactory
def write_mask_labels(gdspath):
    """ find test and measurement labels """
    if gdspath is None:
        gdspath = CONFIG["mask"]["gds"]

    write_labels(gdspath=gdspath)