-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TypeError when a variable name matches a builtin python function (#…
…558) * fix thrown TypeError when a variable name matches a builtin python function Example: A dataset with a column named 'exec' failed with: ValueError: Error from parse_expr with transformed code: "(Float ('86.76248' )-exec )" ... snip ... TypeError: unsupported operand type(s) for -: 'Float' and 'builtin_function_or_method' * Ensure backwards compatibility for `pysr2sympy` and use same method * Fix potential issue with list ordering * Combine builtin variable names test with noisy data test * Fix builtin variable names test --------- Co-authored-by: MilesCranmer <miles.cranmer@gmail.com>
- Loading branch information
1 parent
efffd9b
commit fb5f0a1
Showing
3 changed files
with
20 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