Spaces:
Running
Running
deepsource-autofix[bot]
commited on
Commit
•
bd2462c
1
Parent(s):
6e53f4b
Format code with black
Browse files- pysr/sr.py +3 -1
pysr/sr.py
CHANGED
@@ -1440,7 +1440,9 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
1440 |
julia_project, is_shared = _get_julia_project(self.julia_project)
|
1441 |
Main.eval("using Pkg")
|
1442 |
io = "devnull" if update_verbosity == 0 else "stderr"
|
1443 |
-
io_arg =
|
|
|
|
|
1444 |
|
1445 |
Main.eval(
|
1446 |
f'Pkg.activate("{_escape_filename(julia_project)}", shared = Bool({int(is_shared)}), {io_arg})'
|
|
|
1440 |
julia_project, is_shared = _get_julia_project(self.julia_project)
|
1441 |
Main.eval("using Pkg")
|
1442 |
io = "devnull" if update_verbosity == 0 else "stderr"
|
1443 |
+
io_arg = (
|
1444 |
+
f"io={io}" if is_julia_version_greater_eq(version=(1, 6, 0)) else ""
|
1445 |
+
)
|
1446 |
|
1447 |
Main.eval(
|
1448 |
f'Pkg.activate("{_escape_filename(julia_project)}", shared = Bool({int(is_shared)}), {io_arg})'
|