Skip to content

Commit

Permalink
Fix symbolic regression version exactly
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jan 27, 2024
1 parent 6b61b25 commit 3bcbc49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion juliapkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": {
"SymbolicRegression": {
"uuid": "8254be44-1295-4e6a-a16d-46603ac705cb",
"version": "0.23.1"
"version": "=0.23.1"
},
"ClusterManagers": {
"uuid": "34f1f09b-3a8b-5176-ab39-66d58a4d544e",
Expand Down
11 changes: 0 additions & 11 deletions pysr/julia_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,6 @@ def _escape_filename(filename):
return str_repr


def _backend_version_assertion():
backend_version = jl.seval("string(SymbolicRegression.PACKAGE_VERSION)")
expected_backend_version = juliapkg.status(target="SymbolicRegression").version
if backend_version != expected_backend_version: # pragma: no cover
warnings.warn(
f"PySR backend (SymbolicRegression.jl) version {backend_version} "
f"does not match expected version {expected_backend_version}. "
"Things may break. "
)


def _load_cluster_manager(cluster_manager):
jl.seval(f"using ClusterManagers: addprocs_{cluster_manager}")
return jl.seval(f"addprocs_{cluster_manager}")
Expand Down

0 comments on commit 3bcbc49

Please sign in to comment.