"""Hello, Lumicron — your first cell.

The smallest meaningful Lumicron script: one cell, one rectangle, one
GDS file. If this runs, your install is healthy.
"""
import lumicron as lm

METAL = lm.LayerSpec(layer=4, datatype=0)


@lm.pcell
def HelloLumicron():
    c = lm.CELL("HelloLumicron")
    pad = lm.Rectangle(x_dim=80, y_dim=80, layer=METAL)
    c.add(pad)
    c.Place(pad).at((0, 0))
    return c


if __name__ == "__main__":
    HelloLumicron().to_gds("hello_lumicron.gds")
