MilesCranmer commited on
Commit
8be065d
1 Parent(s): 9aa85e5

Fix bug with variable_names=None on reset

Browse files
Files changed (2) hide show
  1. pysr/sr.py +1 -1
  2. pysr/version.py +1 -1
pysr/sr.py CHANGED
@@ -943,7 +943,7 @@ class PySRRegressor(BaseEstimator, RegressorMixin):
943
 
944
  assert not isinstance(y, pd.DataFrame)
945
 
946
- if len(variable_names) == 0:
947
  variable_names = [f"x{i}" for i in range(X.shape[1])]
948
 
949
  use_custom_variable_names = len(variable_names) != 0
 
943
 
944
  assert not isinstance(y, pd.DataFrame)
945
 
946
+ if variable_names is None or len(variable_names) == 0:
947
  variable_names = [f"x{i}" for i in range(X.shape[1])]
948
 
949
  use_custom_variable_names = len(variable_names) != 0
pysr/version.py CHANGED
@@ -1,2 +1,2 @@
1
  __version__ = "0.7.4"
2
- __symbolic_regression_jl_version__ = "0.7.8"
 
1
  __version__ = "0.7.4"
2
+ __symbolic_regression_jl_version__ = "0.7.9"