- class gdsfactory.technology.LayerStack(*, layers: dict[str, ~gdsfactory.technology.layer_stack.LayerLevel] = <factory>)
For simulation and 3D rendering. Captures design intent of the chip layers after fabrication.
- Parameters
layers– dict of layer_levels.
- __init__(**data: Any)None
Add LayerLevels automatically for subclassed LayerStacks.
Methods
__init__(**data)Add LayerLevels automatically for subclassed LayerStacks.
construct([_fields_set])copy(*[, include, exclude, update, deep])Returns a copy of the model.
dict(*[, include, exclude, by_alias, ...])filtered(layers)Returns filtered layerstack, given layer specs.
from_orm(obj)get_component_with_derived_layers(component, ...)Returns component with derived layers.
get_klayout_3d_script([layer_views, dbu])Returns script for 2.5D view in KLayout.
get_layer_to_info()Returns layer tuple to info dict.
get_layer_to_layername()Returns layer tuple to layername.
get_layer_to_material()Returns layer tuple to material name.
get_layer_to_sidewall_angle()Returns layer tuple to material name.
get_layer_to_thickness()Returns layer tuple to thickness (um).
get_layer_to_zmin()Returns layer tuple to z min position (um).
invert_zaxis()Flips the zmin values about the origin.
json(*[, include, exclude, by_alias, ...])model_construct([_fields_set])Creates a new instance of the Model class with validated data.
model_copy(*[, update, deep])Returns a copy of the LayerStack.
model_dump(*[, mode, include, exclude, ...])!!! abstract "Usage Documentation"
model_dump_json(*[, indent, include, ...])!!! abstract "Usage Documentation"
model_json_schema([by_alias, ref_template, ...])Generates a JSON schema for a model class.
model_parametrized_name(params)Compute the class name for parametrizations of generic classes.
model_post_init(context, /)Override this method to perform additional initialization after __init__ and model_construct.
model_rebuild(*[, force, raise_errors, ...])Try to rebuild the pydantic-core schema for the model.
model_validate(obj, *[, strict, ...])Validate a pydantic model instance.
model_validate_json(json_data, *[, strict, ...])!!! abstract "Usage Documentation"
model_validate_strings(obj, *[, strict, ...])Validate the given object with string data against the Pydantic model.
parse_file(path, *[, content_type, ...])parse_obj(obj)parse_raw(b, *[, content_type, encoding, ...])pprint()schema([by_alias, ref_template])schema_json(*[, by_alias, ref_template])to_dict()update_forward_refs(**localns)validate(value)z_offset(dz)Translates the z-coordinates of the layerstack.
Attributes
model_computed_fieldsmodel_configConfiguration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
layers