Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
e0328e7
1
Parent(s):
7a8dabd
Fix unit issue
Browse files- pysr/sr.py +3 -1
pysr/sr.py
CHANGED
@@ -1736,7 +1736,9 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
1736 |
),
|
1737 |
y_variable_names=jl_y_variable_names,
|
1738 |
X_units=jl_array(self.X_units_),
|
1739 |
-
y_units=jl_array(self.y_units_)
|
|
|
|
|
1740 |
options=options,
|
1741 |
numprocs=cprocs,
|
1742 |
parallelism=parallelism,
|
|
|
1736 |
),
|
1737 |
y_variable_names=jl_y_variable_names,
|
1738 |
X_units=jl_array(self.X_units_),
|
1739 |
+
y_units=jl_array(self.y_units_)
|
1740 |
+
if isinstance(self.y_units_, list)
|
1741 |
+
else self.y_units_,
|
1742 |
options=options,
|
1743 |
numprocs=cprocs,
|
1744 |
parallelism=parallelism,
|