CONFIG#
gdsfactory can store settings in a .env
file in the current directory or any parent directories.
You can create a .env
file in this directory, restart the notebook and see what CONFIG values you are getting.
n_threads=3
display_type=klayout
max_name_length=99
pdk=ubcpdk
difftest_ignore_cell_name_differences=True
difftest_ignore_sliver_differences=False
difftest_ignore_label_differences=False
layer_error_path=[1000, 0]
ports_offgrid=ignore
ports_not_manhattan=true
allow_offgrid=True
on_width_missmatch=warn
on_layer_missmatch=ignore
on_type_missmatch=ignore
default_show_suffix=.gds
raise_error_on_mutation=True
import gdsfactory as gf
gf.CONF.display_type
'klayout'
gf.CONF.n_threads
4