Home › Forums › Nazca › Questions and Answers › Where can I set straight-to-bend waveguide offset › Reply To: Where can I set straight-to-bend waveguide offset
5 July 2018 at 01:52
#4538
Keymaster
Dear Alvin,
There is a pandas DataFrame with the xsection(s) definition(s):
import nazca as nd
# your code ...
# print the xsection definitions:
nd.show_xsection_layer_map()
# work with the underlying DataFrame:
df = nd.cfg.xsection_layer_map
print(df[df['xsection']=='sifab'][['layer', 'growx']])
Maybe a DataFrame is a little laborious to obtain the grow number. Alternatively, store the growx in a variable first and use it later where needed.