MilesCranmer commited on
Commit
05cff8a
1 Parent(s): 609b9fc

Reading equation files from temp dir requires converting dir to string

Browse files
Files changed (1) hide show
  1. pysr/sr.py +1 -1
pysr/sr.py CHANGED
@@ -635,7 +635,7 @@ def get_hof(equation_file=None, n_features=None, variable_names=None, extra_symp
635
  global_extra_sympy_mappings = extra_sympy_mappings
636
 
637
  try:
638
- output = pd.read_csv(equation_file + '.bkup', sep="|")
639
  except FileNotFoundError:
640
  print("Couldn't find equation file!")
641
  return pd.DataFrame()
 
635
  global_extra_sympy_mappings = extra_sympy_mappings
636
 
637
  try:
638
+ output = pd.read_csv(str(equation_file) + '.bkup', sep="|")
639
  except FileNotFoundError:
640
  print("Couldn't find equation file!")
641
  return pd.DataFrame()