-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from molssi-seamm/dev
Added parameters for TFSI - bis[(trifluoromethyl)sulfonyl]imide to CL&P ff
- Loading branch information
Showing
3 changed files
with
228 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Tests for atom type assignment for CL&P forcefield forcefield.""" | ||
|
||
|
||
def test_TFSI(oplsaa_assigner, configuration): | ||
"""Test of atom-type assignment bis(trifluoromethanesulfonyl)imide anion""" | ||
correct = ( | ||
["Cbt"] | ||
+ 3 * ["Fbt"] | ||
+ ["Sbt", "Obt", "Obt"] | ||
+ ["Nbt"] | ||
+ ["Sbt", "Obt", "Obt"] | ||
+ ["Cbt"] | ||
+ 3 * ["Fbt"] | ||
) | ||
configuration.from_smiles("C(F)(F)(F)S(=O)(=O)[N-]S(=O)(=O)C(F)(F)F") | ||
result = oplsaa_assigner.assign(configuration) | ||
if result != correct: | ||
print(f"Incorrect typing. Should be:\n {correct}\nnot\n {result}") | ||
raise AssertionError(f"\n result: {result}\ncorrect: {correct}") |