The first step is to create a layout to be tested so that you can relate the (fictitious) measurements and analyses back to your source layout.

Before you start add the following to ~/.gdsfactory/gdsfactoryplus.toml:

[tool.gdsfactoryplus.api]
key = "{your-api-key}"

[tool.gdsfactoryplus.hub]
host = "https://{organization}.hub.gdsfactory.com"

Imports

import gdsfactory as gf
from gdsfactory.gpdk import PDK

PDK.activate()

A Sheet Resistance Test Layout

Let's create three different widths:

@gf.cell
def resistance_sheet(width=10) -> gf.Component:
    return gf.c.resistance_sheet(width=width)


@gf.cell
def resistance() -> gf.Component:
    widths = (10, 20, 100)
    sweep = [
        resistance_sheet(
            width=width,
        )
        for width in widths
    ]
    return gf.grid(sweep, shape=(len(sweep), 1))

Generate layout

We will sweep the width of a 20um long sheet to measure sheet resistance.

c = resistance()
c.write_gds("resistance.gds")
c.plot()

png