@@ -29,18 +29,23 @@ def job_from_string(name, **kwargs):
29
29
"""
30
30
get a job name given a simple name
31
31
32
- :param name str:
32
+ :param str name :
33
33
34
34
* "opt" or "conf" with ".ts", ".transition_state", ".change", and ".con" extensions
35
+
35
36
* .ts and .transition_state indicate a transition state optimization
36
37
* .con indicates a constrained optimization - "constraints" should
37
- be in kwargs and the value should be a dictionary conformable with
38
- the keyword of OptimizationJob
38
+ be in kwargs and the value should be a dictionary conformable with
39
+ the keyword of OptimizationJob
40
+
39
41
* "freq" with ".num" extensions
42
+
40
43
* .num indicates a numerical frequnecy, as does kwargs["numerical"] = True
41
- kwargs can also have a "temperature" key
44
+ kwargs can also have a "temperature" key
45
+
42
46
* "sp" or "energy" or "single-point"
43
47
* "force" or "gradient" with a ".num" extension
48
+
44
49
* .num indicates a numerical frequnecy, as does kwargs["numerical"] = True
45
50
46
51
:returns: job types for the given string
@@ -149,11 +154,11 @@ def resolve_error(error, theory, exec_type, geometry=None):
149
154
raises NotImplementedError if this job type has no fix for
150
155
the error code
151
156
152
- :param error str: error code (e.g. SCF_CONV; see fileIO ERROR)
153
- :param theory Theory: Theory instance used when the error happened
154
- :param exec_type str: software program (i.e. gaussian, orca, etc.)
157
+ :param str error : error code (e.g. SCF_CONV; see fileIO ERROR)
158
+ :param Theory theory : Theory instance used when the error happened
159
+ :param str exec_type : software program (i.e. gaussian, orca, etc.)
155
160
156
- :param geometry Geometry: (optional) structure might be adjusted slightly if
161
+ :param Geometry geometry : (optional) structure might be adjusted slightly if
157
162
there are close contacts
158
163
"""
159
164
@@ -247,37 +252,34 @@ def __init__(
247
252
geometry = None ,
248
253
):
249
254
"""
250
- :param transition_state bool: request a transition state optimization
251
- :param constraints dict: keys are
255
+ :param bool transition_state : request a transition state optimization
256
+ :param dict constraints : keys are
252
257
253
258
**available for ORCA, Gaussian, and Psi4**
254
259
255
260
* 'atoms' - atom identifiers/finders - atoms to constrain
256
- * 'bonds' - list(atom idenifiers/finders) - distances to constrain
257
- each atom identifier in the list should result in exactly 2 atoms
258
- * 'angles' - list(atom idenifiers/finders) - 1-3 angles to constrain
259
- each atom identifier should result in exactly 3 atoms
260
- * 'torsions' - list(atom identifiers/finders) - constrained dihedral angles
261
- each atom identifier should result in exactly 4 atoms
261
+ * 'bonds' - list(atom idenifiers/finders) - distances to constrain each atom identifier
262
+ in the list should result in exactly 2 atoms
263
+ * 'angles' - list(atom idenifiers/finders) - 1-3 angles to constrain each atom identifier
264
+ should result in exactly 3 atoms
265
+ * 'torsions' - list(atom identifiers/finders) - constrained dihedral angles each atom
266
+ identifier should result in exactly 4 atoms
262
267
263
268
264
269
**available for Gaussian and Psi4**
265
270
266
- * 'x' - list(atom identifiers/finders) - constrain the x coordinate of
267
- these atoms.
268
- Similarly, 'y' and 'z' are also accepted.
271
+ * 'x' - list(atom identifiers/finders) - constrain the x coordinate of these atoms. Similarly, 'y' and 'z' are also accepted.
269
272
* 'xgroup' - list(tuple(list(atom idenifiers), x_val, hold)) -
270
- constrain the x coordinate of these atoms to be the same
273
+ constrain the x coordinate of these atoms to be the same
271
274
272
275
* x_val - set x-coordinate to this value
273
- * hold - hold this value constant during the optimization
274
- if 'hold' is omitted, the value will not be held
275
- constant during the optimization
276
+ * hold - hold this value constant during the optimization if 'hold' is omitted,
277
+ the value will not be held constant during the optimization
276
278
277
- e.g. 'xgroup':[("1-6", 0, False), ("13-24", 3.25, False)]
279
+ e.g. 'xgroup':[("1-6", 0, False), ("13-24", 3.25, False)]
278
280
279
- this will keep atoms 1-6 and 13-24 in parallel planes, while also
280
- allowing those planes to move
281
+ this will keep atoms 1-6 and 13-24 in parallel planes, while also
282
+ allowing those planes to move
281
283
282
284
* 'ygroup' and 'zgroup' are also available, with analagous options
283
285
@@ -286,7 +288,7 @@ def __init__(
286
288
for Gaussian, 'bonds', 'angles', and 'torsions' constraints cannot be mixed
287
289
with 'x', 'y', 'z', 'xgroup', 'ygroup', or 'zgroup' constraints
288
290
289
- :param geometry Geometry: will be set when using an AaronTools FileWriter"""
291
+ :param Geometry geometry : will be set when using an AaronTools FileWriter"""
290
292
super ().__init__ ()
291
293
292
294
self .transition_state = transition_state
@@ -1265,18 +1267,17 @@ def __init__(
1265
1267
geometry = None ,
1266
1268
):
1267
1269
"""
1268
- :param constraints dict:
1270
+ :param dict constraints:
1271
+
1269
1272
valid keys are:
1270
1273
1271
1274
* 'atoms' - atom identifiers/finders - atoms to constrain
1272
- * 'bonds' - list(atom idenifiers/finders) - distances to constrain
1273
- each atom identifier in the list should result in exactly 2 atoms
1274
- * 'angles' - list(atom idenifiers/finders) - 1-3 angles to constrain
1275
- each atom identifier should result in exactly 3 atoms
1275
+ * 'bonds' - list(atom idenifiers/finders) - distances to constrain each atom identifier in the list should result in exactly 2 atoms
1276
+ * 'angles' - list(atom idenifiers/finders) - 1-3 angles to constrain each atom identifier should result in exactly 3 atoms
1276
1277
* 'torsions' - list(atom identifiers/finders) - constrained dihedral angles
1277
1278
each atom identifier should result in exactly 4 atoms
1278
1279
1279
- :param geometry Geometry: will be set when using an AaronTools FileWriter
1280
+ :param Geometry geometry : will be set when using an AaronTools FileWriter
1280
1281
"""
1281
1282
self .constraints = constraints
1282
1283
self .geometry = geometry
0 commit comments