MilesCranmer commited on
Commit
55e3b83
1 Parent(s): b07eb2d

Fix sympy2jax for selection of indices

Browse files
Files changed (1) hide show
  1. pysr/export_jax.py +1 -1
pysr/export_jax.py CHANGED
@@ -173,7 +173,7 @@ def sympy2jax(expression, symbols_in, selection=None):
173
  text = f"def {hash_string}(X, parameters):\n"
174
  if selection is not None:
175
  # Impose the feature selection:
176
- text += f" X = X[:, {list(selection)}]"
177
  text += " return "
178
  text += functional_form_text
179
  ldict = {}
 
173
  text = f"def {hash_string}(X, parameters):\n"
174
  if selection is not None:
175
  # Impose the feature selection:
176
+ text += f" X = X[:, {list(selection)}]\n"
177
  text += " return "
178
  text += functional_form_text
179
  ldict = {}