Spaces:
Running
Running
MilesCranmer
commited on
Commit
·
3e5d906
1
Parent(s):
3856951
Fix version check for io_arg
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
@@ -1440,7 +1440,7 @@ 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 = f"io={io}" if is_julia_version_greater_eq(Main,
|
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 = f"io={io}" if is_julia_version_greater_eq(Main, (1, 6, 0)) else ""
|
1444 |
|
1445 |
Main.eval(
|
1446 |
f'Pkg.activate("{_escape_filename(julia_project)}", shared = Bool({int(is_shared)}), {io_arg})'
|