digichem-core 7.0.2__py3-none-any.whl → 7.0.3__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.
- digichem/__init__.py +2 -2
- digichem/result/excited_state.py +7 -4
- {digichem_core-7.0.2.dist-info → digichem_core-7.0.3.dist-info}/METADATA +1 -1
- {digichem_core-7.0.2.dist-info → digichem_core-7.0.3.dist-info}/RECORD +7 -7
- {digichem_core-7.0.2.dist-info → digichem_core-7.0.3.dist-info}/WHEEL +0 -0
- {digichem_core-7.0.2.dist-info → digichem_core-7.0.3.dist-info}/licenses/COPYING.md +0 -0
- {digichem_core-7.0.2.dist-info → digichem_core-7.0.3.dist-info}/licenses/LICENSE +0 -0
digichem/__init__.py
CHANGED
|
@@ -20,7 +20,7 @@ from digichem.datas import get_resource
|
|
|
20
20
|
# development = prerelease is not None
|
|
21
21
|
# # The full version number of this package.
|
|
22
22
|
# __version__ = "{}.{}.{}{}".format(major_version, minor_version, revision, "-pre.{}".format(prerelease) if development else "")
|
|
23
|
-
__version__ = "7.0.
|
|
23
|
+
__version__ = "7.0.3"
|
|
24
24
|
_v_parts = __version__.split("-")[0].split(".")
|
|
25
25
|
major_version = int(_v_parts[0])
|
|
26
26
|
minor_version = int(_v_parts[1])
|
|
@@ -39,7 +39,7 @@ __author__ = [
|
|
|
39
39
|
]
|
|
40
40
|
|
|
41
41
|
# Program date (when we were last updated). This is changed automatically.
|
|
42
|
-
_last_updated_string = "
|
|
42
|
+
_last_updated_string = "13/11/2025"
|
|
43
43
|
last_updated = datetime.strptime(_last_updated_string, "%d/%m/%Y")
|
|
44
44
|
|
|
45
45
|
# The sys attribute 'frozen' is our flag, '_MEIPASS' is the dir location.
|
digichem/result/excited_state.py
CHANGED
|
@@ -382,17 +382,16 @@ class Excited_state_transition(Result_object):
|
|
|
382
382
|
"label": self.ending_mo.label
|
|
383
383
|
},
|
|
384
384
|
"coefficient": float(self.coefficient),
|
|
385
|
-
"probability": float(self.probability
|
|
385
|
+
"probability": float(self.probability)
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
@classmethod
|
|
389
|
-
def list_from_parser(self, parser):
|
|
389
|
+
def list_from_parser(self, parser, threshold = 1e-4):
|
|
390
390
|
"""
|
|
391
391
|
Create a list of excited state transitions from an output file parser.
|
|
392
392
|
|
|
393
393
|
:param parser: An output file parser.
|
|
394
|
-
:param
|
|
395
|
-
:param beta_mo_list: A Molecular_orbital_list object of the beta MOs of this system. This can be left as null for restricted calcs.
|
|
394
|
+
:param threshold: The threshold below which transitions will be discarded.
|
|
396
395
|
:return: A list of Excited_state_transition objects.
|
|
397
396
|
"""
|
|
398
397
|
try:
|
|
@@ -409,6 +408,10 @@ class Excited_state_transition(Result_object):
|
|
|
409
408
|
|
|
410
409
|
for (starting_mo_index, starting_mo_AB), (ending_mo_index, ending_mo_AB), coefficient in excited_state_transitions:
|
|
411
410
|
try:
|
|
411
|
+
if coefficient **2 < threshold:
|
|
412
|
+
# Skip tiny contributions.
|
|
413
|
+
continue
|
|
414
|
+
|
|
412
415
|
data_list.append({
|
|
413
416
|
'starting_mo': MOs[starting_mo_AB][starting_mo_index],
|
|
414
417
|
'ending_mo': MOs[ending_mo_AB][ending_mo_index],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: digichem-core
|
|
3
|
-
Version: 7.0.
|
|
3
|
+
Version: 7.0.3
|
|
4
4
|
Summary: Open-source library for Digichem core components
|
|
5
5
|
Project-URL: Homepage, https://github.com/Digichem-Project/digichem-core
|
|
6
6
|
Project-URL: Documentation, https://doc.digi-chem.co.uk
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
digichem/__init__.py,sha256=
|
|
1
|
+
digichem/__init__.py,sha256=B84Ts6PW2ZqvYT-BwIGGzLxtvueP4EqRsxu883KGKa4,2287
|
|
2
2
|
digichem/basis.py,sha256=khzIS9A_w8QH2vsXctWr16Bw5TA84_9_Fo-vuveP_5w,4875
|
|
3
3
|
digichem/datas.py,sha256=t2PuQFvPb55WO_qVF3Xz67XNodQDimqYD26VkRPEWLA,433
|
|
4
4
|
digichem/log.py,sha256=tjl8Er16HUsAibBZGZMu8KyT0w53YM3u0Neh_l2jD9Q,6166
|
|
@@ -75,7 +75,7 @@ digichem/result/base.py,sha256=Lahahog9EHEQFP--DClyhiFIoJ0bRFJN37GH-Z2Nu2c,11615
|
|
|
75
75
|
digichem/result/dipole_moment.py,sha256=1Z0qksmk7HYyov7318zWJQVXvteCo59DCCXd2rT2-hg,11082
|
|
76
76
|
digichem/result/emission.py,sha256=XsyOgMtxV6wg9iBpPK-3WSbcIh6ohlZtGybMkuZaEbY,19785
|
|
77
77
|
digichem/result/energy.py,sha256=iboiQF5Twa-TU9b_Utxg5B5U7RmL3LHtRp6XzmQHG0o,10899
|
|
78
|
-
digichem/result/excited_state.py,sha256=
|
|
78
|
+
digichem/result/excited_state.py,sha256=oYE_kFIMX5yl3U9mANW8FpwLymOjsNEte6ZOEsyuhfM,34580
|
|
79
79
|
digichem/result/ground_state.py,sha256=B8lOalD90uNq_pMHy0JhwYYY3rlWpcFlOHPLSO5CjhQ,3804
|
|
80
80
|
digichem/result/metadata.py,sha256=Aak2tviK2HXfbr2m97AbNW1myfWVsSBwgT1ISLRKG88,38602
|
|
81
81
|
digichem/result/multi.py,sha256=IzupKHMcXTf6AReeUCjY9Szy2b4TdOHVtC2Tlb9xg0o,4330
|
|
@@ -109,8 +109,8 @@ digichem/test/test_translate.py,sha256=_3FkYottqHZGxMSTJkbcE8dQXhQlrNlVS0FjMopIw
|
|
|
109
109
|
digichem/test/util.py,sha256=p7KgyR9VGPstD7y8FH0onIxgY4YCvSCmbtJ-kJggxeA,8798
|
|
110
110
|
digichem/test/mock/cubegen,sha256=h2HvmW8YbmYDqycnfCJYstZ2yO1uUxErbCWFKgzXaJ8,6781858
|
|
111
111
|
digichem/test/mock/formchk,sha256=KZWhyJtaMXAGX1Xlx7Ikw9gbncOqLrpYkynz9IMYUlY,756867
|
|
112
|
-
digichem_core-7.0.
|
|
113
|
-
digichem_core-7.0.
|
|
114
|
-
digichem_core-7.0.
|
|
115
|
-
digichem_core-7.0.
|
|
116
|
-
digichem_core-7.0.
|
|
112
|
+
digichem_core-7.0.3.dist-info/METADATA,sha256=U8v1Q_XijfoHUIsIk6xen6LwW7EbTiQ1AK_kyvp4Fkk,4098
|
|
113
|
+
digichem_core-7.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
114
|
+
digichem_core-7.0.3.dist-info/licenses/COPYING.md,sha256=d-yG6IJrlqLkuiuoOFe331YKzMRS05pnmk4e98gu9pQ,900
|
|
115
|
+
digichem_core-7.0.3.dist-info/licenses/LICENSE,sha256=ZLlePQN2WLgdvmIGLEjjHtgIoneUGR2MgE9yjMg1JiY,1457
|
|
116
|
+
digichem_core-7.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|