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

Print solver warning messages to Python console #1951

Open
tomflexcompute opened this issue Sep 6, 2024 · 2 comments
Open

Print solver warning messages to Python console #1951

tomflexcompute opened this issue Sep 6, 2024 · 2 comments
Assignees

Comments

@tomflexcompute
Copy link
Contributor

There are some warnings in the logs but they are not printed in the console. One example is the warning about "TE mode specified in the mode source but no TE modes are found". Users think having this kind of messages printed out would be helpful.

@momchil-flex
Copy link
Collaborator

So currently, if there are warnings found in the log, a warning is printed saying that.

             WARNING: Warning messages were found in the solver log. For more   
             information, check 'SimulationData.log' or use                     
             'web.download_log(task_id)'. 

The idea behind this was not to have a large output if there are many warning messages in the log. If I understand correctly what you are proposing is instead to display them all?

@tomflexcompute
Copy link
Contributor Author

Yes essentially. It's one of those situations where we can't make everyone happy. Some people prefer to see all the warnings so they know if there are potential issues. Some people prefer to have less warnings so the console/notebook look cleaner. I think we should probably lean towards the former and users can always turn off the warning if they want.

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

No branches or pull requests

2 participants