Skip to content

Commit

Permalink
Fix reference CN for Ac and Cm (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede authored Jan 15, 2024
1 parent 3397689 commit 2fb57c1
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 89 deletions.
22 changes: 11 additions & 11 deletions src/tad_dftd4/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,21 +898,21 @@
],
[
0.00000000000000, # Am
0.76201480627060,
1.54385828971863,
2.39868640899658,
3.99497199058533,
4.80997991561890,
0.78272187709808,
1.58581125736237,
2.46386861801147,
4.10353183746338,
4.94068670272827,
0.00000000000000,
],
[
0.00000000000000, # Cm
0.83212512731552,
1.64380240440369,
2.46540093421936,
3.25204372406006,
4.04486131668091,
4.84447526931763,
0.8347442150116,
1.64897620677948,
2.47316074371338,
3.26227951049805,
4.05759239196777,
4.85972309112549,
],
[
0.00000000000000, # Bk
Expand Down
154 changes: 77 additions & 77 deletions test/test_disp/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ class Record(Molecule, Refs):
{
"q": torch.tensor(
[
6.352363671348717e-01,
+6.352363671348717e-01,
-2.117462362670332e-01,
-2.117468436581089e-01,
-2.117432872097296e-01,
Expand All @@ -1036,28 +1036,28 @@ class Record(Molecule, Refs):
),
"disp": torch.tensor(
[
-9.3997982313329337e-04,
-4.6301059954583521e-04,
-4.6297660992900051e-04,
-4.6301394398860047e-04,
-9.3960116555182624e-04,
-4.6280459295405140e-04,
-4.6277062060098238e-04,
-4.6280793520723541e-04,
],
dtype=torch.double,
),
"disp2": torch.tensor(
[
-9.3998602155777051e-04,
-4.6310814042444968e-04,
-4.6307414796839725e-04,
-4.6311148543106215e-04,
-9.3960735964556687e-04,
-4.6290205209913919e-04,
-4.6286807690883289e-04,
-4.6290539491577494e-04,
],
dtype=torch.double,
),
"disp3": torch.tensor(
[
+6.1984244771259546e-09,
+9.7540878614445899e-08,
+9.7538039396719123e-08,
+9.7541442461658528e-08,
+6.1940937406331102e-09,
+9.7459145087812312e-08,
+9.7456307850505277e-08,
+9.7459708539529044e-08,
],
dtype=torch.double,
),
Expand All @@ -1068,88 +1068,88 @@ class Record(Molecule, Refs):
"q": torch.tensor(
[
-3.305094571137845e-01,
1.045149602532968e-01,
+1.045149602532968e-01,
-1.773960379881043e00,
3.331467348040358e-01,
4.951411452461927e-01,
4.707822787779681e-02,
2.743911400307595e-01,
3.246927331906781e-01,
1.425159600492128e-01,
1.419982718793466e-01,
2.277998732736134e-01,
2.177188049669549e-01,
1.066816495299460e-01,
1.796290415002953e-01,
+3.331467348040358e-01,
+4.951411452461927e-01,
+4.707822787779681e-02,
+2.743911400307595e-01,
+3.246927331906781e-01,
+1.425159600492128e-01,
+1.419982718793466e-01,
+2.277998732736134e-01,
+2.177188049669549e-01,
+1.066816495299460e-01,
+1.796290415002953e-01,
-2.972753601075876e-01,
-3.751406822706739e-01,
1.815773367709599e-01,
+1.815773367709599e-01,
],
dtype=torch.float64,
),
"disp": torch.tensor(
[
-6.9063555211996757e-03,
-8.4866081258503610e-03,
-1.5606957961072051e-02,
-9.3150642014858242e-03,
-9.9199178790030373e-03,
-8.3652539938101449e-03,
-5.6334500079658475e-03,
-1.0979193521027822e-02,
-1.4870307730427973e-02,
-6.5565983338060595e-03,
-8.7933294187513538e-03,
-1.2163908672091538e-02,
-1.7407687160723322e-02,
-1.4920876705972700e-02,
-1.5225191869198093e-02,
-1.0681949263575337e-02,
-1.7858429194433208e-02,
-6.9077485181144897e-03,
-8.4886887399048434e-03,
-1.5589303196460312e-02,
-9.3154295393771836e-03,
-9.9218046362659004e-03,
-8.3640999536631917e-03,
-5.6322035065770265e-03,
-1.0978111931273979e-02,
-1.4875736264909220e-02,
-6.6166224624100859e-03,
-8.7972117832679480e-03,
-1.2168952399951156e-02,
-1.7408470242384642e-02,
-1.4928775851538770e-02,
-1.5225287216012236e-02,
-1.0681974287191583e-02,
-1.7862860006978613e-02,
],
dtype=torch.double,
),
"disp2": torch.tensor(
[
-6.9135714732367713e-03,
-8.4941422750580454e-03,
-1.5631214742266784e-02,
-9.3297927080381766e-03,
-9.9232835793580977e-03,
-8.3794362774539093e-03,
-5.6493241701450541e-03,
-1.0993455185527931e-02,
-1.4883220543276156e-02,
-6.5732688389917391e-03,
-8.8037781207156284e-03,
-1.2189099473023848e-02,
-1.7423942577670957e-02,
-1.4938355586051829e-02,
-1.5233384726485381e-02,
-1.0712106674960588e-02,
-1.7865709637713410e-02,
-6.9149788562442790e-03,
-8.4962327642484174e-03,
-1.5613560786167961e-02,
-9.3301816878467690e-03,
-9.9251744845758171e-03,
-8.3782962725212941e-03,
-5.6480824985472586e-03,
-1.0992404495832688e-02,
-1.4888643172914474e-02,
-6.6334411082871591e-03,
-8.8076579284360086e-03,
-1.2194178898565337e-02,
-1.7424757421622160e-02,
-1.4946257122650740e-02,
-1.5233505100120818e-02,
-1.0712129940401221e-02,
-1.7870150980779705e-02,
],
dtype=torch.double,
),
"disp3": torch.tensor(
[
+7.2159520370904534e-06,
+7.5341492076903970e-06,
+2.4256781194729662e-05,
+1.4728506552354082e-05,
+3.3657003550729202e-06,
+1.4182283643768106e-05,
+1.5874162179205514e-05,
+1.4261664500123273e-05,
+1.2912812848184835e-05,
+1.6670505185681039e-05,
+1.0448701964276458e-05,
+2.5190800932319163e-05,
+1.6255416947617772e-05,
+1.7478880079133499e-05,
+8.1928572872919559e-06,
+3.0157411385263311e-05,
+7.2804432801869369e-06,
+7.2303381297893667e-06,
+7.5440243435735760e-06,
+2.4257589707649145e-05,
+1.4752148469585554e-05,
+3.3698483099159523e-06,
+1.4196318858102793e-05,
+1.5878991970232019e-05,
+1.4292564558710473e-05,
+1.2906908005254225e-05,
+1.6818645877072989e-05,
+1.0446145168060084e-05,
+2.5226498614181619e-05,
+1.6287179237516917e-05,
+1.7481271111969254e-05,
+8.2178841085809071e-06,
+3.0155653209638006e-05,
+7.2909738010926691e-06,
],
dtype=torch.double,
),
Expand Down
2 changes: 1 addition & 1 deletion test/test_grad/test_hessian.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_fail() -> None:
param = {"a1": numbers}

# differentiable variable is not a tensor
with pytest.raises(RuntimeError):
with pytest.raises(ValueError):
hessian(dftd4, (numbers, positions, param), argnums=2)


Expand Down

0 comments on commit 2fb57c1

Please sign in to comment.