-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change signature of Protocol.create to have a list of ComponentMappin…
…gs (#260) * change signature of Protocol.create to have a list of ComponentMappings was previously a dict[str, ComponentMapping] where the strings were arbitrary labels. These arbitrary labels were superfluous. Instead can use the arbitrary labels on ChemicalSystems to label components. ComponentMappings can (should) be matched against components in ChemicalSystem using the Component eq operations. also affects Transformation object, which was essentially wrapper around Protocol + ChemicalSystem * make mapping input ComponentMapping or list thereof makes input for most cases simpler * fixing up change to mapping argument * fix up test for .to_rbfe_alchemical_network * make _create signature more predictable massage mapping inputs into list in Protocol.create * final fixups for Protocol.create API change * final fixups for Protocol.create API change * allow None type for mapping in _create * doc fixups * another doc fixup * typing fixes --------- Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
- Loading branch information
1 parent
a426dce
commit c12bba6
Showing
6 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters