MilesCranmer commited on
Commit
d85ddfd
1 Parent(s): 2621d76

Fix extra_sympy_mappings check

Browse files
Files changed (1) hide show
  1. pysr/sr.py +1 -1
pysr/sr.py CHANGED
@@ -139,7 +139,7 @@ def _maybe_create_inline_operators(
139
  "Only alphanumeric characters, numbers, "
140
  "and underscores are allowed."
141
  )
142
- if (extra_sympy_mappings is not None) and (
143
  not function_name in extra_sympy_mappings
144
  ):
145
  raise ValueError(
 
139
  "Only alphanumeric characters, numbers, "
140
  "and underscores are allowed."
141
  )
142
+ if (extra_sympy_mappings is None) or (
143
  not function_name in extra_sympy_mappings
144
  ):
145
  raise ValueError(