klayout
klayout copied to clipboard
Provide a way to suppress or redirect log output or disable warnings, specifically from file readers, in Python module
For background see here: https://www.klayout.de/forum/discussion/2127/how-to-suppress-warning-output#latest
The solutions proposed with the listed PR is a new option for "LoadLayoutOptions", i.e.
options = pya.LoadLayoutOptions()
options.warn_level = 0
ly = pya.Layout()
# Enjoy reading without warnings
ly.read("my.dxf", options)
...