We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
__bool__
OpenStudio/src/utilities/core/CommonImport.i
Lines 105 to 107 in 255c623
test for it:
import openstudio def test_optional_not_initialized(): d = openstudio.OptionalDouble() assert not d.is_initialized() assert not bool(d) def test_optionalinitialized(): d = openstudio.OptionalDouble(10.0) assert d.is_initialized() assert bool(d)
The text was updated successfully, but these errors were encountered:
Fix #4979 - Add operator __bool__ for optional in python bindings + c…
8caf445
…test via pytest
ad48fcf
Merge pull request #4987 from NREL/4979_python__bool__
7a987d3
Fix #4979 - Add operator __bool__ for optional in python bindings
a58ea22
Successfully merging a pull request may close this issue.
Enhancement Request
__bool__
method for optionals__bool__
OpenStudio/src/utilities/core/CommonImport.i
Lines 105 to 107 in 255c623
test for it:
The text was updated successfully, but these errors were encountered: