Skip to content

"Custom function my_pow throws MethodError despite NaN handling" #641

Discussion options

You must be logged in to vote

I think it's because you put my_pow in unary operators, but it is actually a binary operator.

(I guess the error message for such an error should be better)


Also your extra_sympy_mappings can't use numpy functions – only sympy ones.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Hosseinmghasemi
Comment options

@Hosseinmghasemi
Comment options

@MilesCranmer
Comment options

@Hosseinmghasemi
Comment options

Answer selected by Hosseinmghasemi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PySR PySR-related discussion
2 participants