-
Notifications
You must be signed in to change notification settings - Fork 13
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
Route comparison and scoring updates #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have inconsistent code styling, if you could run black on new/modified files it will help until we address it repo-wide.
@@ -349,7 +431,7 @@ def smiles2inchikey(smiles: str, ignore_stereo: bool = False) -> str: | |||
|
|||
|
|||
def _assign_atom_mapped_smiles( | |||
tree_dict: Dict[str, Any], reaction_smiles: str = "" | |||
tree_dict: Dict[str, Any], reactants_smiles: List[str] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the default value for 'reactants_smiles' should be an empty list.
tree_dict: Dict[str, Any], reactants_smiles: List[str] = None | |
tree_dict: Dict[str, Any], reactants_smiles: List[str] = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should never have empty lists as default arguments
Co-authored-by: Christos Kannas <[email protected]>
|
||
def route_distances_calculator(model: str, **kwargs: Any) -> RouteDistancesCalculator: | ||
""" | ||
Return a callable that given a list routes as dictionaries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no mention in the docstring that must be either "ted" or "lstm"
This includes changes from the internal repo that can be made public. I making this now because of the route comparison publication