-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Expression simplifcation] Improve error handling (#352)
* Fix incorrect error type in term_order.py * Improve error handling of constant folding * Catch exception caused by simplification rules if in debug * Catch empty operands operation in collapse_constants.py * Update documentation of constant_folding.py * Create MalformedInput exception * Handle malformed input in collapse_constants.py * Handle errors in collapse_nested_constants.py * Add clarifying comment in collapse_nested_constants.py * Catch exception in expression simplification earlier * Fix documentation in constant_folding.py * Change how exceptions are propagated * Update outdated comment * Remove unnecessary check in collapse_constants.py * fix broken merge --------- Co-authored-by: Manuel Blatt <[email protected]>
- Loading branch information
Showing
8 changed files
with
257 additions
and
145 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
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
Oops, something went wrong.