Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos and unclear messages #39

Merged
merged 3 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.
- Adapt tutorials to the renaming from PR #9 ([#17](https://github.com/microsoft/syntheseus/pull/17)) ([@jagarridotorres])
- Pin `pydantic` version to `1.*` ([#10](https://github.com/microsoft/syntheseus/pull/10)) ([@kmaziarz])
- Fix compatibility with Python 3.7 ([#5](https://github.com/microsoft/syntheseus/pull/5)) ([@kmaziarz])
- Pin `zipp` version to `<3.16` ([#11](https://github.com/microsoft/syntheseus/pull/11)) ([@kmaziarz])
- Correct some typos and unclear error messages ([#39](https://github.com/microsoft/syntheseus/pull/39)) ([@austint])

## [0.1.0] - 2023-05-25

Expand Down
2 changes: 1 addition & 1 deletion syntheseus/search/graph/and_or.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def to_synthesis_graph(self, nodes: Optional[Collection[ANDOR_NODE]] = None) ->
root_reactions = list(subgraph.successors(self.root_node))
assert (
len(root_reactions) == 1
), "There appears to be more than 1 reaction for the root node."
), f"There appears to be {len(root_reactions)} reactions for the root node (expected exactly 1)."
new_graph = SynthesisGraph(root_node=root_reactions[0].reaction)

# Add all nodes and edges
Expand Down
2 changes: 1 addition & 1 deletion syntheseus/tests/search/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def retrosynthesis_task6() -> RetrosynthesisTask:
CCCOC -> CC + COC

There are 2 routes of length 2:
CCCO -> CCCO + C
CCCOC -> CCCO + C
C -> O

CCCOC -> CCCOO
Expand Down
Loading