Skip to content

Commit c4dfcec

Browse files
fix(cli): simplify command without fragile installed
1 parent bdeebd9 commit c4dfcec

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libraries/mathy_python/mathy/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def cli_simplify(problem: str, model: str, max_steps: int, swarm: bool, parallel
5959

6060
from .models import load_model
6161
from .api import Mathy
62-
from .swarm import SwarmConfig
6362

6463
if swarm is True:
64+
from .swarm import SwarmConfig
65+
6566
mt = Mathy(config=SwarmConfig(use_mp=parallel))
66-
mt.simplify(problem=problem, max_steps=max_steps)
6767
else:
6868
mt = load_model(model)
6969

libraries/mathy_python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ srsly
55
pydantic>=1.0.0
66
typer>=0.1.0,<0.2.0
77
wasabi
8-
mathy_core>=0.7.16,<0.8.0
8+
mathy_core>=0.7.19,<0.8.0
99
# new python feature backports
1010
dataclasses>=0.6,<1.0; python_version < "3.7"
1111
typing_extensions>=3.7.4.1,<4.0.0.0; python_version < "3.7"

0 commit comments

Comments
 (0)