MilesCranmer commited on
Commit
1175632
1 Parent(s): bfb799a

Fix missing f-string for weights definition

Browse files
Files changed (2) hide show
  1. pysr/sr.py +1 -1
  2. setup.py +1 -1
pysr/sr.py CHANGED
@@ -407,7 +407,7 @@ const X = readdlm("{_escape_filename(X_filename)}", ',', Float32, '\\n')
407
  const y = readdlm("{_escape_filename(y_filename)}", ',', Float32, '\\n')"""
408
 
409
  if weights is not None:
410
- def_datasets += """
411
  const weights = readdlm("{_escape_filename(weights_filename)}", ',', Float32, '\\n')"""
412
 
413
  if use_custom_variable_names:
 
407
  const y = readdlm("{_escape_filename(y_filename)}", ',', Float32, '\\n')"""
408
 
409
  if weights is not None:
410
+ def_datasets += f"""
411
  const weights = readdlm("{_escape_filename(weights_filename)}", ',', Float32, '\\n')"""
412
 
413
  if use_custom_variable_names:
setup.py CHANGED
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
 
6
  setuptools.setup(
7
  name="pysr", # Replace with your own username
8
- version="0.3.35",
9
  author="Miles Cranmer",
10
  author_email="[email protected]",
11
  description="Simple and efficient symbolic regression",
 
5
 
6
  setuptools.setup(
7
  name="pysr", # Replace with your own username
8
+ version="0.3.36",
9
  author="Miles Cranmer",
10
  author_email="[email protected]",
11
  description="Simple and efficient symbolic regression",