qcmr.adfkf 0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qcmr.adfkf might be problematic. Click here for more details.

@@ -0,0 +1,14 @@
1
+ Metadata-Version: 2.1
2
+ Name: qcmr.adfkf
3
+ Version: 0.1
4
+ Summary: Read formatted Keyed File (KF) from ADF
5
+ Author-Email: Mariusz Radon <mariusz.radon@uj.edu.pl>
6
+ License: MIT
7
+ Requires-Python: >=3.8
8
+ Requires-Dist: wrapfile>=0.2
9
+ Description-Content-Type: text/markdown
10
+
11
+ # qcmr.adfkf
12
+
13
+ Read formatted Keyed File (KF) from ADF.
14
+ See [KF output files](https://www.scm.com/doc/ADF/kf_defs.html).
@@ -0,0 +1,4 @@
1
+ # qcmr.adfkf
2
+
3
+ Read formatted Keyed File (KF) from ADF.
4
+ See [KF output files](https://www.scm.com/doc/ADF/kf_defs.html).
@@ -0,0 +1,34 @@
1
+ [project]
2
+ name = "qcmr.adfkf"
3
+ description = "Read formatted Keyed File (KF) from ADF"
4
+ authors = [
5
+ { name = "Mariusz Radon", email = "mariusz.radon@uj.edu.pl" },
6
+ ]
7
+ dynamic = []
8
+ dependencies = [
9
+ "wrapfile>=0.2",
10
+ ]
11
+ requires-python = ">=3.8"
12
+ readme = "README.md"
13
+ version = "0.1"
14
+
15
+ [project.license]
16
+ text = "MIT"
17
+
18
+ [build-system]
19
+ requires = [
20
+ "pdm-backend",
21
+ ]
22
+ build-backend = "pdm.backend"
23
+
24
+ [tool.pdm]
25
+ distribution = true
26
+
27
+ [tool.pdm.version]
28
+ source = "scm"
29
+
30
+ [dependency-groups]
31
+ dev = [
32
+ "ipython>=8.12.3",
33
+ "pytest>=8.3.5",
34
+ ]
Binary file
@@ -0,0 +1,7 @@
1
+ h2o, exptl geometry
2
+ B3LYP-D4/TZP
3
+
4
+ O 0.0000 0.0000 0.1173
5
+ H 0.0000 0.7572 -0.4692
6
+ H 0.0000 -0.7572 -0.4692
7
+
@@ -0,0 +1,20 @@
1
+ import pathlib
2
+ p0 = pathlib.Path(__file__).parent
3
+
4
+ from qcmr.adfkf import readkf
5
+
6
+ import pytest
7
+
8
+ def test_mol_coords():
9
+ x = readkf(p0/'data'/'h2o'/'h2o.dat.gz')
10
+ xyz = x['Molecule']['Coords']
11
+ assert xyz[0] == pytest.approx(0, abs=1e-5)
12
+ assert xyz[1] == pytest.approx(0, abs=1e-5)
13
+ assert xyz[2] == pytest.approx(0.22166487, abs=1e-5)
14
+ assert xyz[3] == pytest.approx(0, abs=1e-5)
15
+ assert xyz[4] == pytest.approx(1.4309006, abs=1e-5)
16
+ assert xyz[5] == pytest.approx(-0.8866595, abs=1e-5)
17
+ assert xyz[6] == pytest.approx(0, abs=1e-5)
18
+ assert xyz[7] == pytest.approx(-1.4309006, abs=1e-5)
19
+ assert xyz[8] == pytest.approx(-0.8866595, abs=1e-5)
20
+