-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement BNG boolean treatment within expressions (#494)
* Implement BNG boolean treatment within expressions BNG treats booleans as integers within expressions (1=True, 0=False), so an expression like `(2 > 1) * 4` will get evaluated to `4`. Sometimes these expressions get produced by BNG local functions and may be present in other imported models as well. However, doesn't implement multiplication of BooleanAtoms, which causes a TypeError. * Implement Boolean multiplication fix proposed by @jmuhlich Co-authored-by: Jeremy Muhlich <jmuhlich@bitflood.org>
- Loading branch information
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters