Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
3bcbc49
1
Parent(s):
6b61b25
Fix symbolic regression version exactly
Browse files- juliapkg.json +1 -1
- pysr/julia_helpers.py +0 -11
juliapkg.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
"packages": {
|
4 |
"SymbolicRegression": {
|
5 |
"uuid": "8254be44-1295-4e6a-a16d-46603ac705cb",
|
6 |
-
"version": "0.23.1"
|
7 |
},
|
8 |
"ClusterManagers": {
|
9 |
"uuid": "34f1f09b-3a8b-5176-ab39-66d58a4d544e",
|
|
|
3 |
"packages": {
|
4 |
"SymbolicRegression": {
|
5 |
"uuid": "8254be44-1295-4e6a-a16d-46603ac705cb",
|
6 |
+
"version": "=0.23.1"
|
7 |
},
|
8 |
"ClusterManagers": {
|
9 |
"uuid": "34f1f09b-3a8b-5176-ab39-66d58a4d544e",
|
pysr/julia_helpers.py
CHANGED
@@ -38,17 +38,6 @@ def _escape_filename(filename):
|
|
38 |
return str_repr
|
39 |
|
40 |
|
41 |
-
def _backend_version_assertion():
|
42 |
-
backend_version = jl.seval("string(SymbolicRegression.PACKAGE_VERSION)")
|
43 |
-
expected_backend_version = juliapkg.status(target="SymbolicRegression").version
|
44 |
-
if backend_version != expected_backend_version: # pragma: no cover
|
45 |
-
warnings.warn(
|
46 |
-
f"PySR backend (SymbolicRegression.jl) version {backend_version} "
|
47 |
-
f"does not match expected version {expected_backend_version}. "
|
48 |
-
"Things may break. "
|
49 |
-
)
|
50 |
-
|
51 |
-
|
52 |
def _load_cluster_manager(cluster_manager):
|
53 |
jl.seval(f"using ClusterManagers: addprocs_{cluster_manager}")
|
54 |
return jl.seval(f"addprocs_{cluster_manager}")
|
|
|
38 |
return str_repr
|
39 |
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
def _load_cluster_manager(cluster_manager):
|
42 |
jl.seval(f"using ClusterManagers: addprocs_{cluster_manager}")
|
43 |
return jl.seval(f"addprocs_{cluster_manager}")
|