gdsfactory.technology.LayerStack#
- class gdsfactory.technology.LayerStack(*, layers=<factory>)[source]#
- For simulation and 3D rendering. Captures design intent of the chip layers after fabrication. - Parameters:
- layers (dict[str, LayerLevel]) – dict of layer_levels. 
 - __init__(**data)[source]#
- Add LayerLevels automatically for subclassed LayerStacks. - Parameters:
- data (Any) 
- Return type:
- None 
 
 - 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, ensure_ascii, ...])- !!! 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, extra, ...])- 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_fields- model_config- Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict]. - model_extra- Get extra fields set during validation. - model_fields- model_fields_set- Returns the set of fields that have been explicitly set on this model instance. - layers
