Spaces:
Sleeping
Sleeping
Commit
·
d306cbe
1
Parent(s):
10f05a3
Fix DaemonMode dir
Browse files- Project.toml +1 -0
- pysr/sr.py +2 -1
Project.toml
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
[deps]
|
|
|
|
| 2 |
SymbolicRegression = "8254be44-1295-4e6a-a16d-46603ac705cb"
|
| 3 |
|
| 4 |
[compat]
|
|
|
|
| 1 |
[deps]
|
| 2 |
+
DaemonMode = "d749ddd5-2b29-4920-8305-6ff5a704e36e"
|
| 3 |
SymbolicRegression = "8254be44-1295-4e6a-a16d-46603ac705cb"
|
| 4 |
|
| 5 |
[compat]
|
pysr/sr.py
CHANGED
|
@@ -434,8 +434,10 @@ def pysr(
|
|
| 434 |
pkg_directory = kwargs["pkg_directory"]
|
| 435 |
if kwargs["julia_project"] is not None:
|
| 436 |
manifest_filepath = Path(kwargs["julia_project"]) / "Manifest.toml"
|
|
|
|
| 437 |
else:
|
| 438 |
manifest_filepath = pkg_directory / "Manifest.toml"
|
|
|
|
| 439 |
|
| 440 |
kwargs["need_install"] = False
|
| 441 |
|
|
@@ -484,7 +486,6 @@ def _start_julia_daemon(
|
|
| 484 |
return
|
| 485 |
|
| 486 |
s = "import Pkg;"
|
| 487 |
-
s += 'Pkg.add("DaemonMode");'
|
| 488 |
if need_install:
|
| 489 |
s += "Pkg.instantiate();"
|
| 490 |
s += "Pkg.update();"
|
|
|
|
| 434 |
pkg_directory = kwargs["pkg_directory"]
|
| 435 |
if kwargs["julia_project"] is not None:
|
| 436 |
manifest_filepath = Path(kwargs["julia_project"]) / "Manifest.toml"
|
| 437 |
+
kwargs["julia_project"] = Path(kwargs["julia_project"])
|
| 438 |
else:
|
| 439 |
manifest_filepath = pkg_directory / "Manifest.toml"
|
| 440 |
+
kwargs["julia_project"] = pkg_directory
|
| 441 |
|
| 442 |
kwargs["need_install"] = False
|
| 443 |
|
|
|
|
| 486 |
return
|
| 487 |
|
| 488 |
s = "import Pkg;"
|
|
|
|
| 489 |
if need_install:
|
| 490 |
s += "Pkg.instantiate();"
|
| 491 |
s += "Pkg.update();"
|