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)
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)
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"])
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)
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)
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)
def write_mask_labels(gdspath): """ find test and measurement labels """ if gdspath is None: gdspath = CONFIG["mask"]["gds"] write_labels(gdspath=gdspath)