occpy 0.6.11__cp311-cp311-macosx_11_0_arm64.whl → 0.7.2__cp311-cp311-macosx_11_0_arm64.whl
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.
- bin/occ +0 -0
- occpy/__init__.py +38 -22
- occpy/_occpy.cpython-311-darwin.so +0 -0
- occpy/core/__init__.py +1 -0
- occpy/crystal/__init__.py +1 -0
- occpy/dft/__init__.py +1 -0
- occpy/isosurface/__init__.py +1 -0
- occpy/qm/__init__.py +1 -0
- {occpy-0.6.11.dist-info → occpy-0.7.2.dist-info}/METADATA +15 -14
- {occpy-0.6.11.dist-info → occpy-0.7.2.dist-info}/RECORD +13 -7
- occpy-0.7.2.dist-info/entry_points.txt +3 -0
- {occpy-0.6.11.dist-info → occpy-0.7.2.dist-info}/WHEEL +0 -0
- {occpy-0.6.11.dist-info → occpy-0.7.2.dist-info}/licenses/LICENSE.txt +0 -0
bin/occ
CHANGED
Binary file
|
occpy/__init__.py
CHANGED
@@ -1,11 +1,20 @@
|
|
1
1
|
from pathlib import Path
|
2
2
|
import site
|
3
3
|
import warnings
|
4
|
-
from ._occpy import
|
5
|
-
|
4
|
+
from ._occpy import (
|
5
|
+
set_log_level,
|
6
|
+
set_log_file,
|
7
|
+
set_data_directory,
|
8
|
+
set_num_threads,
|
9
|
+
LogLevel,
|
10
|
+
)
|
11
|
+
from .core import Atom, Element, Molecule, Dimer
|
12
|
+
from .crystal import Crystal
|
13
|
+
from .qm import AOBasis, HartreeFock, Shell, Wavefunction
|
14
|
+
from .dft import DFT
|
6
15
|
|
7
|
-
# Set up logging first
|
8
|
-
|
16
|
+
# Set up logging first, only log critical errors
|
17
|
+
set_log_level(LogLevel.CRITICAL)
|
9
18
|
|
10
19
|
# Get site-packages directory and construct path to data
|
11
20
|
_site_packages = Path(site.getsitepackages()[0])
|
@@ -18,34 +27,41 @@ if not _data_dir.exists():
|
|
18
27
|
set_data_directory(str(_data_dir))
|
19
28
|
|
20
29
|
__all__ = [
|
21
|
-
"AOBasis",
|
22
|
-
"AsymmetricUnit",
|
23
30
|
"Atom",
|
24
|
-
"
|
31
|
+
"AOBasis",
|
25
32
|
"calculate_crystal_growth_energies",
|
33
|
+
"core",
|
34
|
+
"crystal",
|
26
35
|
"Crystal",
|
27
|
-
"
|
28
|
-
"CrystalDimers",
|
29
|
-
"CrystalGrowthConfig",
|
30
|
-
"CGDimer",
|
31
|
-
"CGEnergyTotal",
|
32
|
-
"CGResult",
|
36
|
+
"dft",
|
33
37
|
"DFT",
|
34
38
|
"Dimer",
|
35
|
-
"DimerSolventTerm",
|
36
39
|
"Element",
|
37
40
|
"HartreeFock",
|
38
|
-
"
|
39
|
-
"HKL",
|
40
|
-
"KS",
|
41
|
-
"LatticeConvergenceSettings",
|
42
|
-
"MolecularOrbitals",
|
41
|
+
"LogLevel",
|
43
42
|
"Molecule",
|
43
|
+
"qm",
|
44
44
|
"set_data_directory",
|
45
45
|
"set_num_threads",
|
46
|
-
"
|
46
|
+
"set_log_file",
|
47
|
+
"set_log_level",
|
47
48
|
"Shell",
|
48
|
-
"SymmetryRelatedDimer",
|
49
|
-
"UnitCell",
|
50
49
|
"Wavefunction",
|
51
50
|
]
|
51
|
+
|
52
|
+
|
53
|
+
def run_occ_executable():
|
54
|
+
import subprocess
|
55
|
+
import sys
|
56
|
+
import os
|
57
|
+
from pathlib import Path
|
58
|
+
|
59
|
+
env = os.environ.copy()
|
60
|
+
site_packages = Path(site.getsitepackages()[0])
|
61
|
+
data_dir = site_packages / "share" / "occ"
|
62
|
+
occ_path = site_packages / "bin" / "occ"
|
63
|
+
|
64
|
+
if data_dir.exists():
|
65
|
+
env["OCC_DATA_PATH"] = str(data_dir)
|
66
|
+
|
67
|
+
subprocess.run([str(occ_path)] + sys.argv[1:], env=env)
|
Binary file
|
occpy/core/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
from .._occpy.core import *
|
@@ -0,0 +1 @@
|
|
1
|
+
from .._occpy.crystal import *
|
occpy/dft/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
from .._occpy.dft import *
|
@@ -0,0 +1 @@
|
|
1
|
+
from .._occpy.isosurface import *
|
occpy/qm/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
from .._occpy.qm import *
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: occpy
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.7.2
|
4
4
|
Summary: A library for quantum chemistry
|
5
5
|
Author-Email: Peter Spackman <peterspackman@fastmail.com>
|
6
6
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
@@ -93,32 +93,33 @@ OCC provides comprehensive functionality for ground-state single-point calculati
|
|
93
93
|
## Python API Examples
|
94
94
|
|
95
95
|
```python
|
96
|
-
import
|
96
|
+
import occpy
|
97
|
+
from occpy import Crystal, Molecule, AOBasis, HartreeFock, DFT
|
98
|
+
from occpy.qm import SpinorbitalKind
|
97
99
|
|
98
100
|
# Set up basic configuration
|
99
|
-
|
100
|
-
|
101
|
+
occpy.set_log_level(occpy.LogLevel.WARN) # Configure logging level
|
102
|
+
# occpy.set_data_directory("/path/to/basis/sets") # Optional: Set basis set path
|
101
103
|
|
102
104
|
# Load molecule from XYZ file
|
103
|
-
mol =
|
105
|
+
mol = Molecule.from_xyz_file("h2o.xyz")
|
104
106
|
|
105
|
-
# Basic Hartree-Fock calculation
|
106
|
-
basis =
|
107
|
-
hf =
|
108
|
-
scf = hf.scf(
|
109
|
-
scf.set_charge_multiplicity(0, 1) # Neutral singlet
|
107
|
+
# Basic Restricted Hartree-Fock calculation
|
108
|
+
basis = AOBasis.load(mol.atoms(), "6-31G")
|
109
|
+
hf = HartreeFock(basis)
|
110
|
+
scf = hf.scf()
|
110
111
|
energy = scf.run()
|
111
112
|
wfn = scf.wavefunction()
|
112
113
|
|
113
114
|
# DFT calculation
|
114
|
-
dft =
|
115
|
-
ks = dft.scf(
|
115
|
+
dft = DFT("B3LYP", basis)
|
116
|
+
ks = dft.scf(SpinorbitalKind.Unrestricted)
|
116
117
|
ks.set_charge_multiplicity(0, 1)
|
117
118
|
energy = ks.run()
|
118
119
|
|
119
120
|
# Crystal structure analysis
|
120
|
-
crystal =
|
121
|
-
dimers = crystal.symmetry_unique_dimers(
|
121
|
+
crystal = Crystal.from_cif_file("structure.cif")
|
122
|
+
dimers = crystal.symmetry_unique_dimers(10.0) # Get unique dimers within 10 Å
|
122
123
|
```
|
123
124
|
|
124
125
|
For more examples and detailed API documentation, please refer to the [documentation](docs_url_here).
|
@@ -1,10 +1,16 @@
|
|
1
|
-
occpy
|
2
|
-
occpy/
|
3
|
-
|
4
|
-
occpy-0.
|
5
|
-
occpy-0.
|
6
|
-
occpy-
|
7
|
-
occpy
|
1
|
+
occpy-0.7.2.dist-info/RECORD,,
|
2
|
+
occpy-0.7.2.dist-info/WHEEL,sha256=vqMBchNIsmW0K9HInUQuY_xePW9YD3coNJy6G1Yfto8,114
|
3
|
+
occpy-0.7.2.dist-info/entry_points.txt,sha256=A4GiWZiBEsMWu1jDPAQiDe4HxoDYPNK4hEduZYG1oKg,52
|
4
|
+
occpy-0.7.2.dist-info/METADATA,sha256=9SNFT7APpw9f352F0wkwCsbG60fR_jYlwRCNcgB--hM,6728
|
5
|
+
occpy-0.7.2.dist-info/licenses/LICENSE.txt,sha256=5fvmauGmRic38fyZZuc3YBBPEmgbYKVcRuCb1YLN7UU,781
|
6
|
+
occpy/_occpy.cpython-311-darwin.so,sha256=bjvmYIL1L4CveDQH63puGXwQ_IWhTRHR9c7wYefLFR8,22706336
|
7
|
+
occpy/__init__.py,sha256=gLiJYqL4iZeWTfbbY_tzVG_hHDU8hOQtfNl87g6dH-I,1531
|
8
|
+
occpy/core/__init__.py,sha256=JC4Ik0SIFFAgv0IL7SWJC6yBIK7aXGI67fp9E_DKhjU,28
|
9
|
+
occpy/dft/__init__.py,sha256=ow8XTJl0CHkxmc_lt4T7S6ngp1p4WUgjILe5n2zCtTA,27
|
10
|
+
occpy/crystal/__init__.py,sha256=OnXmaAaqCdT-qUsdCaxzTPsAAkMUgtby8HBSVeGHeNQ,31
|
11
|
+
occpy/isosurface/__init__.py,sha256=0xyQP668dbQd9je5-BxHSIOkjAZwSbmVMO96GX6J6H8,34
|
12
|
+
occpy/qm/__init__.py,sha256=nE3qnqGKWl5VxrUKg2GTC4mOSKMSZTFDfbeV073KvIc,26
|
13
|
+
bin/occ,sha256=2XLYg_wka0H3zyOm5e1Cy3TlDICckDgvZMvROdzY_Bk,25584560
|
8
14
|
share/occ/solvent/dielectric_constants.json,sha256=GMRldNjqknxVm9ROCDvDrfWhIc9FdIIjGhnAxQwT26c,49229
|
9
15
|
share/occ/solvent/dielectrics.json,sha256=E8otdtPhjmZDSOoXnSo2gsM8zV5KVXpt3C8aZ3qyxFM,4854
|
10
16
|
share/occ/solvent/smd.json,sha256=GMRldNjqknxVm9ROCDvDrfWhIc9FdIIjGhnAxQwT26c,49229
|
File without changes
|
File without changes
|