Skip to content

Suppress warnings written with tl::warn from Python #1971

@nikosavola

Description

@nikosavola

Hi Matthias, great work on the project.

I was using the Spice reader and currently get loads of warnings like

Warning: Element type 'X' ignored in ...

The warning itself is fine but I would like to suppress these for my use case. Seems this is not possible from the Python API yet as the underlying tl::warn is printed unconditionally.

There appears to be a verbosity level for the logger (https://www.klayout.de/doc/code/class_Logger.html#method17) but this does not affect the warnings.

Suggestion

Allow setting some verbosity level which suppresses even warnings (calls to tl::warn).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions