Skip to content

Commit 32a7c87

Browse files
committed
Fixed variable naming and set default
1 parent aa95dd6 commit 32a7c87

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/libra_py/packages/mopac/methods.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def mopac_compute_adi(q, params, full_id):
488488
* **params[i]["CAS"]** (list of of ints, int): the list represents the indices of spatial orbitals used in CAS definition in INDO-CI
489489
calculations, absoluted values; the "int" represents the number of electrons in the active space. For example, if the HOMO is 8
490490
and and CAS was (6, 3) - 6 orbitals with 3 doubly-filled orbitals, then one would use: [ [6,7,8, 9, 10, 11], 6]
491-
* **params[i]["is_single_excitation"]** ( bool or int): 0 - consider full configuration space, 1 - use single excitation specific methods
491+
* **params[i]["is_singlet_excitation"]** ( bool or int): 0 - consider full configuration space [ default ], 1 - use single excitation specific methods
492492
Returns:
493493
PyObject: obj, with the members:
494494
@@ -521,7 +521,7 @@ def mopac_compute_adi(q, params, full_id):
521521
"mopac_working_directory": "mopac_wd",
522522
"mopac_input_prefix": "input_", "mopac_output_prefix": "output_",
523523
"dt": 1.0 * units.fs2au, "do_Lowdin": 0,
524-
"CAS":[ [1,2], 2], "mult_S":0, "mult_Ms":0
524+
"CAS":[ [1,2], 2], "mult_S":0, "mult_Ms":0, "is_singlet_excitation":0
525525
}
526526
comn.check_input(params[itraj], default_params, critical_params)
527527

@@ -541,7 +541,7 @@ def mopac_compute_adi(q, params, full_id):
541541
CAS = params[itraj]["CAS"]
542542
mult_S = params[itraj]["mult_S"]
543543
mult_Ms = params[itraj]["mult_Ms"]
544-
is_single_excitation = params[itraj]["is_single_excitation"]
544+
is_singlet_excitation = params[itraj]["is_singlet_excitation"]
545545
natoms = len(labels)
546546
ndof = 3 * natoms
547547

@@ -559,7 +559,7 @@ def mopac_compute_adi(q, params, full_id):
559559
"orbital_space":orbital_space,
560560
"nstates":nstates
561561
})
562-
if is_single_excitation:
562+
if is_singlet_excitation:
563563
configs_curr, CSF_coeff_curr = interfaces.configs_and_T_matrix_singlet(configs_raw_curr,
564564
active_space=CAS[0],
565565
orbital_space = actual_orbital_space,

0 commit comments

Comments
 (0)