Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to suppress or redirect log output or disable warnings, specifically from file readers, in Python module #1138

Closed
klayoutmatthias opened this issue Aug 10, 2022 · 1 comment · Fixed by #1139
Assignees
Milestone

Comments

@klayoutmatthias
Copy link
Collaborator

For background see here: https://www.klayout.de/forum/discussion/2127/how-to-suppress-warning-output#latest

@klayoutmatthias klayoutmatthias changed the title Provide a way to suppress or redirect log output, specifically from file readers, in Python module Provide a way to suppress or redirect log output or disable warnings, specifically from file readers, in Python module Aug 13, 2022
@klayoutmatthias klayoutmatthias self-assigned this Aug 13, 2022
@klayoutmatthias klayoutmatthias added this to the 0.28 milestone Aug 13, 2022
@klayoutmatthias
Copy link
Collaborator Author

klayoutmatthias commented Aug 13, 2022

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)
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant