-
Notifications
You must be signed in to change notification settings - Fork 48
fix: Raise AttributeError for non-existing meshing objects after switch_to solver. #3949
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
fix: Raise AttributeError for non-existing meshing objects after switch_to solver. #3949
Conversation
Hi @prmukherj, Thanks for the improvements here — I agree that raising That said, I wanted to highlight a few related areas that may warrant attention to ensure consistent and intuitive behavior:
Happy to discuss any of these further — let me know what you think. |
Yes @seanpearsonuk, I agree with this proposal. These changes are necessary. Others please put in your views as well. |
Can you please explain the *_wo_exit changes in tests? |
Yes, these tests have to be exited manually as they are meshing sessions switching to solver in the test body. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The private _switched
attribute is probably no longer required now.
Agreed, Removed now. Will need to update PyConsole accordingly in the next release. |
@prmukherj Is there a test for |
No, the help behavior was not updated yet. Will update it as part of this PR only then. Converting it to draft for further testing. |
Raise AttributeError for non-existing meshing objects after switch_to solver.
Earlier instead of raising an Attribute error (general python behaviour), it was returning None. This has been corrected now.
There is an "is_active" method associated with session objects to check it's state.