Skip to content

Commit 5f340a2

Browse files
committed
Add some files to past unit tests and update recharge study DB files
1 parent 2eda4b4 commit 5f340a2

5 files changed

Lines changed: 693 additions & 4 deletions

File tree

devtools/conda-envs/test_env.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ dependencies:
2727
- openff-toolkit >=0.18.0
2828
- openff-interchange >=0.5.1
2929
- openff-evaluator-base >= 0.5.3
30-
# - openff-recharge
30+
- openff-recharge
3131
# - openeye-toolkits (Don't have a license file to use with GH Actions.)
32-
- pint <0.25
32+
- pint <0.25

src/recharge_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from forcebalance.target import Target
1818

1919
try:
20-
from openff.recharge.charges import ChargeSettings
20+
from openff.recharge.charges.qc import QCChargeSettings
2121
from openff.recharge.esp.storage import MoleculeESPStore
2222
from openff.recharge.optimize import ElectricFieldObjective, ESPObjective # ElectricFieldOptimization, ESPOptimization
2323
from openff.recharge.charges.bcc import BCCCollection
@@ -131,7 +131,7 @@ def _initialize(self):
131131
)
132132

133133
# TODO: Currently only AM1 is supported by the SMIRNOFF handler.
134-
charge_settings = ChargeSettings(theory="am1", symmetrize=True, optimize=True)
134+
charge_settings = QCChargeSettings(theory="am1", symmetrize=True, optimize=True)
135135

136136
# Pre-calculate the expensive operations which are needed to evaluate the
137137
# objective function, but do not depend on the current parameters.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<ForceField>
2+
<AtomTypes>
3+
<Type name="tip4p-O" class="OW" element="O" mass="15.99943"/>
4+
<Type name="tip4p-H" class="HW" element="H" mass="1.007947"/>
5+
<Type name="tip4p-M" class="MW" mass="0"/>
6+
<Type name="tip4p-L" class="LW" mass="0"/>
7+
</AtomTypes>
8+
<Residues>
9+
<Residue name="HOH">
10+
<Atom name="O" type="tip4p-O"/>
11+
<Atom name="H1" type="tip4p-H"/>
12+
<Atom name="H2" type="tip4p-H"/>
13+
<Atom name="M" type="tip4p-M"/>
14+
<Atom name="L1" type="tip4p-L"/>
15+
<Atom name="L2" type="tip4p-L"/>
16+
<VirtualSite type="average3" index="3" atom1="0" atom2="1" atom3="2" weight1="1.023787149847e+00" weight2="-1.189357492343e-02" weight3="-1.189357492343e-02" parameterize="weight1" parameter_eval="weight2=0.5*(1.0-PARM['VirtualSite/weight1/HOH-3']), weight3=0.5*(1.0-PARM['VirtualSite/weight1/HOH-3'])"/>
17+
<VirtualSite type="average2" index="4" atom1="0" atom2="1" weight1="-5.235784773271e-03" weight2="1.005235784773e+00" parameterize="weight1" parameter_eval="weight2=1.0-PARM['VirtualSite/weight1/HOH-4']"/>
18+
<VirtualSite type="average2" index="5" atom1="0" atom2="2" weight1="-5.235784773271e-03" weight2="1.005235784773e+00" parameter_eval="weight1=PARM['VirtualSite/weight1/HOH-4'], weight2=1.0-PARM['VirtualSite/weight1/HOH-4']"/>
19+
<Bond from="0" to="1"/>
20+
<Bond from="0" to="2"/>
21+
</Residue>
22+
</Residues>
23+
<HarmonicBondForce>
24+
<Bond class1="OW" class2="HW" length="0.1" k="462750.4"/>
25+
</HarmonicBondForce>
26+
<HarmonicAngleForce>
27+
<Angle class1="HW" class2="OW" class3="HW" angle="1.9106119321581925" k="836.8"/>
28+
</HarmonicAngleForce>
29+
<NonbondedForce coulomb14scale="0.833333" lj14scale="0.5">
30+
<Atom type="tip4p-O" charge="0" sigma="1" epsilon="0"/>
31+
<Atom type="tip4p-H" charge="0" sigma="1" epsilon="0"/>
32+
<Atom type="tip4p-L" charge="4.234447011332e-01" sigma="1" epsilon="0" parameterize="charge"/>
33+
<Atom type="tip4p-M" charge="-8.468894022664e-01" sigma="3.178132992662e-01" epsilon="6.518502969140e-01" parameterize="sigma, epsilon" parameter_eval="charge=-2.0*PARM['Atom/charge/tip4p-L']"/>
34+
</NonbondedForce>
35+
</ForceField>

0 commit comments

Comments
 (0)