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

#4456
Ronald
Keymaster

Dear Alvin,

A good way forward is to look into the demofab implementation, which you can find in the installer .zip file:
Open the zip and navigate to the nazca/demofab/ directory. Copy the files as a start for your own implementation.

To find/see attributes of an object in a typical Python development environment you can use tab completion:

xs1.<press tab>

You can print attribute values that may or may not be defined like:

try:
   print(xs1.os)
except:
   print("no os attribute defined")

Alternatively, Python lets you query the available attributes and methods like

import nazca.demofab as demo
dir(demo.xsShallow)

Also, an official Nazca PDK comes with a dedicated manual. The website will be extended for this soon.
Hope this helps.

Ronald