structure-step 2024.8.4__py2.py3-none-any.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.
@@ -0,0 +1,26 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ """
4
+ structure_step
5
+ A SEAMM plug-in for energy optimized structures
6
+ """
7
+
8
+ # Bring up the classes so that they appear to be directly in
9
+ # the structure_step package.
10
+
11
+ from .structure import Structure # noqa: F401, E501
12
+ from .structure_parameters import StructureParameters # noqa: F401, E501
13
+ from .structure_step import StructureStep # noqa: F401, E501
14
+ from .tk_structure import TkStructure # noqa: F401, E501
15
+
16
+ from .metadata import metadata # noqa: F401
17
+
18
+ # Handle versioneer
19
+ from ._version import get_versions
20
+
21
+ __author__ = "Paul Saxe"
22
+ __email__ = "psaxe@molssi.org"
23
+ versions = get_versions()
24
+ __version__ = versions["version"]
25
+ __git_revision__ = versions["full-revisionid"]
26
+ del get_versions, versions
@@ -0,0 +1,21 @@
1
+
2
+ # This file was generated by 'versioneer.py' (0.18) from
3
+ # revision-control system data, or from the parent directory name of an
4
+ # unpacked source archive. Distribution tarballs contain a pre-generated copy
5
+ # of this file.
6
+
7
+ import json
8
+
9
+ version_json = '''
10
+ {
11
+ "date": "2024-08-04T14:26:22-0400",
12
+ "dirty": false,
13
+ "error": null,
14
+ "full-revisionid": "751f88e99ff651815960ebf70945b5c1ed043310",
15
+ "version": "2024.8.4"
16
+ }
17
+ ''' # END VERSION_JSON
18
+
19
+
20
+ def get_versions():
21
+ return json.loads(version_json)
@@ -0,0 +1 @@
1
+ Property,Type,Units,Description,URL
@@ -0,0 +1,40 @@
1
+ This is an initial library of BibTex references for the structure_step plug-in for SEAMM,
2
+ generated automatically by the cookiecutter. You may wish to edit the first entry to correct some
3
+ of the information.
4
+
5
+ Add other references to the end of the file and add code in the plug-in to cite the references as
6
+ appropriate. This is done with code like this:
7
+
8
+ self.references.cite(
9
+ raw=self._bibliography['doi:10.1002/jcc.21224'],
10
+ alias='packmol',
11
+ module='packmol_step',
12
+ level=1,
13
+ note='The principle PACKMOL citation.'
14
+ )
15
+
16
+ which is typically in the run() method of the plug-in.
17
+
18
+ The base node class in SEAMM automatically reads this list of references into a dictionary in
19
+ self._bibliography with the key being the key of the BibTex entry -- usually the name on the
20
+ first line of the entry after the 'article' or 'misc' (for software) keyword.
21
+
22
+ See the documentation for the Reference Handler for the other arguments to cite().
23
+
24
+ # End of initial comments #
25
+
26
+ # This is the citation for this plug-in, generated and used automatically.
27
+ # You might need to edit the author, address, etc. The month, year and version fields
28
+ # are automatically filled in with information about current version of the plug-in.
29
+ # This is handled in seamm/nody.py, the run() method.
30
+
31
+ @Misc{structure_step,
32
+ author = {Paul Saxe},
33
+ title = {Structure plug-in for SEAMM},
34
+ month = {$month},
35
+ year = {$year},
36
+ organization = {molssi-seamm},
37
+ url = {https://github.com/molssi-seamm/structure_step },
38
+ address = {USA},
39
+ version = {$version}
40
+ }
@@ -0,0 +1,177 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ """This file contains metadata describing the results from Structure
4
+ """
5
+
6
+ metadata = {}
7
+
8
+ """Description of the computational models for Structure.
9
+
10
+ Hamiltonians, approximations, and basis set or parameterizations,
11
+ only if appropriate for this code. For example::
12
+
13
+ metadata["computational models"] = {
14
+ "Hartree-Fock": {
15
+ "models": {
16
+ "PM7": {
17
+ "parameterizations": {
18
+ "PM7": {
19
+ "elements": "1-60,62-83",
20
+ "periodic": True,
21
+ "reactions": True,
22
+ "optimization": True,
23
+ "code": "mopac",
24
+ },
25
+ "PM7-TS": {
26
+ "elements": "1-60,62-83",
27
+ "periodic": True,
28
+ "reactions": True,
29
+ "optimization": False,
30
+ "code": "mopac",
31
+ },
32
+ },
33
+ },
34
+ },
35
+ },
36
+ }
37
+ """
38
+ # metadata["computational models"] = {
39
+ # }
40
+
41
+ """Description of the Structure keywords.
42
+
43
+ (Only needed if this code uses keywords)
44
+
45
+ Fields
46
+ ------
47
+ description : str
48
+ A human readable description of the keyword.
49
+ takes values : int (optional)
50
+ Number of values the keyword takes. If missing the keyword takes no values.
51
+ default : str (optional)
52
+ The default value(s) if the keyword takes values.
53
+ format : str (optional)
54
+ How the keyword is formatted in the MOPAC input.
55
+
56
+ For example::
57
+ metadata["keywords"] = {
58
+ "0SCF": {
59
+ "description": "Read in data, then stop",
60
+ },
61
+ "ALT_A": {
62
+ "description": "In PDB files with alternative atoms, select atoms A",
63
+ "takes values": 1,
64
+ "default": "A",
65
+ "format": "{}={}",
66
+ },
67
+ }
68
+ """
69
+ # metadata["keywords"] = {
70
+ # }
71
+
72
+ """Properties that Structure produces.
73
+ `metadata["results"]` describes the results that this step can produce. It is a
74
+ dictionary where the keys are the internal names of the results within this step, and
75
+ the values are a dictionary describing the result. For example::
76
+
77
+ metadata["results"] = {
78
+ "total_energy": {
79
+ "calculation": [
80
+ "energy",
81
+ "optimization",
82
+ ],
83
+ "description": "The total energy",
84
+ "dimensionality": "scalar",
85
+ "methods": [
86
+ "ccsd",
87
+ "ccsd(t)",
88
+ "dft",
89
+ "hf",
90
+ ],
91
+ "property": "total energy#Psi4#{model}",
92
+ "type": "float",
93
+ "units": "E_h",
94
+ },
95
+ }
96
+
97
+ Fields
98
+ ______
99
+
100
+ calculation : [str]
101
+ Optional metadata describing what subtype of the step produces this result.
102
+ The subtypes are completely arbitrary, but often they are types of calculations
103
+ which is why this is name `calculation`. To use this, the step or a substep
104
+ define `self._calculation` as a value. That value is used to select only the
105
+ results with that value in this field.
106
+
107
+ description : str
108
+ A human-readable description of the result.
109
+
110
+ dimensionality : str
111
+ The dimensions of the data. The value can be "scalar" or an array definition
112
+ of the form "[dim1, dim2,...]". Symmetric tringular matrices are denoted
113
+ "triangular[n,n]". The dimensions can be integers, other scalar
114
+ results, or standard parameters such as `n_atoms`. For example, '[3]',
115
+ [3, n_atoms], or "triangular[n_aos, n_aos]".
116
+
117
+ methods : str
118
+ Optional metadata like the `calculation` data. `methods` provides a second
119
+ level of filtering, often used for the Hamiltionian for *ab initio* calculations
120
+ where some properties may or may not be calculated depending on the type of
121
+ theory.
122
+
123
+ property : str
124
+ An optional definition of the property for storing this result. Must be one of
125
+ the standard properties defined either in SEAMM or in this steps property
126
+ metadata in `data/properties.csv`.
127
+
128
+ type : str
129
+ The type of the data: string, integer, or float.
130
+
131
+ units : str
132
+ Optional units for the result. If present, the value should be in these units.
133
+ """
134
+ metadata["results"] = {
135
+ "energy": {
136
+ "description": "The total energy",
137
+ "dimensionality": "scalar",
138
+ "type": "float",
139
+ "units": "kJ/mol",
140
+ },
141
+ "nsteps": {
142
+ "description": "The number of steps in the optimization",
143
+ "dimensionality": "scalar",
144
+ "type": "int",
145
+ "units": "",
146
+ },
147
+ "converged": {
148
+ "description": "Whether the optimization converged",
149
+ "dimensionality": "scalar",
150
+ "type": "bool",
151
+ "units": "",
152
+ },
153
+ "rms_gradient": {
154
+ "description": "The root mean square of the gradients",
155
+ "dimensionality": "scalar",
156
+ "type": "float",
157
+ "units": "kJ/mol/Å",
158
+ },
159
+ "maximum_step": {
160
+ "description": "The maximum step size of any atom",
161
+ "dimensionality": "scalar",
162
+ "type": "float",
163
+ "units": "Å",
164
+ },
165
+ "maximum_gradient": {
166
+ "description": "The maximum gradient on any atom",
167
+ "dimensionality": "scalar",
168
+ "type": "float",
169
+ "units": "kJ/mol/Å",
170
+ },
171
+ "t_elapsed": {
172
+ "description": "The elapsed time for the optimization",
173
+ "dimensionality": "scalar",
174
+ "type": "float",
175
+ "units": "s",
176
+ },
177
+ }