Skip to content

Commit

Permalink
Make qml optional dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmcezar committed Sep 25, 2023
1 parent 3d8b9b1 commit 2405a11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clusttraj/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ def configure_runtime(args_in: List[str]) -> ClustOptions:
parser.add_argument(
"--reorder-alg",
action="store",
default="qml",
default="hungarian",
metavar="METHOD",
help="select which reorder algorithm to use; hungarian, brute, distance, qml (default). Warning: brute is VERY slow)",
help="select which reorder algorithm to use; hungarian (default), brute, distance, qml. Warning: brute is VERY slow)",
)
parser.add_argument(
"-ns",
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ clusttraj = "clusttraj.main:main"

[project.optional-dependencies]
test = ["pytest", "pytest-cov[all]"]
docs = ["sphinx", "sphinx_rtd_theme"]
lint = ["ruff", "black"]
qml = ["qml @ git+https://github.com/hmcezar/qml@develop"]
all = ["clusttraj[test,docs,lint,qml]"]

[tool.setuptools]
packages = ["clusttraj"]
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ rmsd
scipy
scikit-learn
matplotlib
qml @ git+https://github.com/hmcezar/qml@develop
openbabel-wheel>=3.0

0 comments on commit 2405a11

Please sign in to comment.