mlatom 2.0.2__tar.gz → 2.0.4__tar.gz

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.
Files changed (84) hide show
  1. {MLatom-2.0.2/src/MLatom.egg-info → MLatom-2.0.4}/PKG-INFO +3 -3
  2. {MLatom-2.0.2 → MLatom-2.0.4}/README.md +2 -2
  3. {MLatom-2.0.2 → MLatom-2.0.4}/setup.py +9 -5
  4. MLatom-2.0.4/src/MLatom/LICENSE.CC-BY-NC-ND-4.0 +251 -0
  5. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/ML_NEA.py +18 -8
  6. MLatom-2.0.4/src/MLatom/MLatomF_src/A_KRR.f90 +1182 -0
  7. MLatom-2.0.4/src/MLatom/MLatomF_src/A_KRR_kernel.f90 +939 -0
  8. MLatom-2.0.4/src/MLatom/MLatomF_src/D_CoulombMatrix.f90 +175 -0
  9. MLatom-2.0.4/src/MLatom/MLatomF_src/D_rel2eq.f90 +315 -0
  10. MLatom-2.0.4/src/MLatom/MLatomF_src/MLatomF.f90 +150 -0
  11. MLatom-2.0.4/src/MLatom/MLatomF_src/MLatomFInfo.f90 +27 -0
  12. MLatom-2.0.4/src/MLatom/MLatomF_src/MLmodel.f90 +695 -0
  13. MLatom-2.0.4/src/MLatom/MLatomF_src/Makefile +59 -0
  14. MLatom-2.0.4/src/MLatom/MLatomF_src/Makefile.intel +4 -0
  15. MLatom-2.0.4/src/MLatom/MLatomF_src/analyze.f90 +67 -0
  16. MLatom-2.0.4/src/MLatom/MLatomF_src/constants.f90 +16 -0
  17. MLatom-2.0.4/src/MLatom/MLatomF_src/cs.cpp +71 -0
  18. MLatom-2.0.4/src/MLatom/MLatomF_src/dataset.f90 +2114 -0
  19. MLatom-2.0.4/src/MLatom/MLatomF_src/mathUtils.f90 +750 -0
  20. MLatom-2.0.4/src/MLatom/MLatomF_src/molDescr.f90 +389 -0
  21. MLatom-2.0.4/src/MLatom/MLatomF_src/optionsModule.f90 +1244 -0
  22. MLatom-2.0.4/src/MLatom/MLatomF_src/precision.f90 +11 -0
  23. MLatom-2.0.4/src/MLatom/MLatomF_src/sampling.f90 +119 -0
  24. MLatom-2.0.4/src/MLatom/MLatomF_src/statistics.f90 +582 -0
  25. MLatom-2.0.4/src/MLatom/MLatomF_src/stopper.f90 +24 -0
  26. MLatom-2.0.4/src/MLatom/MLatomF_src/strings.f90 +31 -0
  27. MLatom-2.0.4/src/MLatom/MLatomF_src/timing.f90 +49 -0
  28. MLatom-2.0.4/src/MLatom/MLatomF_src/types.f90 +19 -0
  29. MLatom-2.0.4/src/MLatom/README +38 -0
  30. MLatom-2.0.4/src/MLatom/__init__.py +0 -0
  31. MLatom-2.0.4/src/MLatom/documentation/installation.txt +117 -0
  32. MLatom-2.0.4/src/MLatom/example/E_FCI_451.dat +451 -0
  33. MLatom-2.0.4/src/MLatom/example/E_UHF_451.dat +451 -0
  34. MLatom-2.0.4/src/MLatom/example/R_451.dat +451 -0
  35. MLatom-2.0.4/src/MLatom/example/isubtrain.dat +13 -0
  36. MLatom-2.0.4/src/MLatom/example/itest.dat +434 -0
  37. MLatom-2.0.4/src/MLatom/example/itrain.dat +17 -0
  38. MLatom-2.0.4/src/MLatom/example/ivalidate.dat +4 -0
  39. MLatom-2.0.4/src/MLatom/example/mlatom.inp +17 -0
  40. MLatom-2.0.4/src/MLatom/example/mlatom.saved +245 -0
  41. MLatom-2.0.4/src/MLatom/example/test.sh +12 -0
  42. MLatom-2.0.4/src/MLatom/interfaces/DeePMDkit/__init__.py +0 -0
  43. MLatom-2.0.4/src/MLatom/interfaces/GAP/__init__.py +0 -0
  44. MLatom-2.0.4/src/MLatom/interfaces/PhysNet/__init__.py +0 -0
  45. MLatom-2.0.4/src/MLatom/interfaces/TorchANI/__init__.py +0 -0
  46. MLatom-2.0.4/src/MLatom/interfaces/__init__.py +0 -0
  47. MLatom-2.0.4/src/MLatom/interfaces/sGDML/__init__.py +0 -0
  48. MLatom-2.0.4/src/MLatom/mlatom_gui.py +1348 -0
  49. MLatom-2.0.4/src/MLatom/shell_cmd.py +14 -0
  50. {MLatom-2.0.2 → MLatom-2.0.4/src/MLatom.egg-info}/PKG-INFO +3 -3
  51. MLatom-2.0.4/src/MLatom.egg-info/SOURCES.txt +78 -0
  52. MLatom-2.0.4/src/MLatom.egg-info/entry_points.txt +6 -0
  53. MLatom-2.0.4/src/MLatom.egg-info/top_level.txt +1 -0
  54. MLatom-2.0.2/MLatomF +0 -12
  55. MLatom-2.0.2/mlatom +0 -12
  56. MLatom-2.0.2/src/MLatom.egg-info/SOURCES.txt +0 -34
  57. MLatom-2.0.2/src/MLatom.egg-info/top_level.txt +0 -1
  58. {MLatom-2.0.2 → MLatom-2.0.4}/LICENSE.txt +0 -0
  59. {MLatom-2.0.2 → MLatom-2.0.4}/setup.cfg +0 -0
  60. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/MLatom.py +0 -0
  61. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/MLatomF +0 -0
  62. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/MLtasks.py +0 -0
  63. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/args_class.py +0 -0
  64. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/cs.so +0 -0
  65. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/doc.py +0 -0
  66. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/header.py +0 -0
  67. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interface_MLatomF.py +0 -0
  68. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/DeePMDkit/DP_inference.py +0 -0
  69. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/DeePMDkit/interface_DeePMDkit.py +0 -0
  70. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/DeePMDkit/template.json +0 -0
  71. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/GAP/interface_GAP.py +0 -0
  72. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/PhysNet/PhysNet_predict.py +0 -0
  73. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/PhysNet/PhysNet_train.py +0 -0
  74. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/PhysNet/interface_PhysNet.py +0 -0
  75. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/TorchANI/TorchANI_predict.py +0 -0
  76. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/TorchANI/TorchANI_train.py +0 -0
  77. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/TorchANI/interface_TorchANI.py +0 -0
  78. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/sGDML/interface_sGDML.py +0 -0
  79. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/interfaces/sGDML/sgdml_dataset_from_extxyz.py +0 -0
  80. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/ref.json +0 -0
  81. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/sliceData.py +0 -0
  82. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom/stopper.py +0 -0
  83. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom.egg-info/dependency_links.txt +0 -0
  84. {MLatom-2.0.2 → MLatom-2.0.4}/src/MLatom.egg-info/requires.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: MLatom
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: A Package for Atomistic Simulations with Machine Learning
5
5
  Home-page: http://mlatom.com
6
6
  Author: Pavlo O. Dral
@@ -122,7 +122,7 @@ MLatom also provides interfaces to some third-party software where extra ML mode
122
122
 
123
123
  # About Program
124
124
  MLatom: a Package for Atomistic Simulations with Machine Learning
125
- Version 2.0.2
125
+ Version 2.0.3
126
126
  http://mlatom.com/
127
127
 
128
128
  Copyright (c) 2013-2021 Pavlo O. Dral
@@ -136,7 +136,7 @@ Cite as:
136
136
 
137
137
  1. Pavlo O. Dral, J. Comput. Chem. 2019, 40, 2339-2347
138
138
  2. Pavlo O. Dral, Fuchun Ge, Bao-Xin Xue, Yi-Fan Hou, Max Pinheiro Jr, Jianxing Huang, Mario Barbatti, Top. Curr. Chem. 2021, 379, 27
139
- 3. Pavlo O. Dral, Bao-Xin Xue, Fuchun Ge, Yi-Fan Hou, Max Pinheiro Jr, MLatom: A Package for Atomistic Simulations with Machine Learning, version 2.0.2, Xiamen University, Xiamen, China, 2013-2021.
139
+ 3. Pavlo O. Dral, Bao-Xin Xue, Fuchun Ge, Yi-Fan Hou, Max Pinheiro Jr, MLatom: A Package for Atomistic Simulations with Machine Learning, version 2.0.3, Xiamen University, Xiamen, China, 2013-2021.
140
140
 
141
141
 
142
142
  # License
@@ -104,7 +104,7 @@ MLatom also provides interfaces to some third-party software where extra ML mode
104
104
 
105
105
  # About Program
106
106
  MLatom: a Package for Atomistic Simulations with Machine Learning
107
- Version 2.0.2
107
+ Version 2.0.3
108
108
  http://mlatom.com/
109
109
 
110
110
  Copyright (c) 2013-2021 Pavlo O. Dral
@@ -118,7 +118,7 @@ Cite as:
118
118
 
119
119
  1. Pavlo O. Dral, J. Comput. Chem. 2019, 40, 2339-2347
120
120
  2. Pavlo O. Dral, Fuchun Ge, Bao-Xin Xue, Yi-Fan Hou, Max Pinheiro Jr, Jianxing Huang, Mario Barbatti, Top. Curr. Chem. 2021, 379, 27
121
- 3. Pavlo O. Dral, Bao-Xin Xue, Fuchun Ge, Yi-Fan Hou, Max Pinheiro Jr, MLatom: A Package for Atomistic Simulations with Machine Learning, version 2.0.2, Xiamen University, Xiamen, China, 2013-2021.
121
+ 3. Pavlo O. Dral, Bao-Xin Xue, Fuchun Ge, Yi-Fan Hou, Max Pinheiro Jr, MLatom: A Package for Atomistic Simulations with Machine Learning, version 2.0.3, Xiamen University, Xiamen, China, 2013-2021.
122
122
 
123
123
 
124
124
  # License
@@ -43,7 +43,7 @@ with open(os.path.join(here, 'README.md')) as f:
43
43
 
44
44
  setup(
45
45
  name = pkg_name,
46
- version = "2.0.2",
46
+ version = "2.0.4",
47
47
  author = "Pavlo O. Dral",
48
48
  author_email = "admin@mlatom.com",
49
49
  license = 'CC BY-NC-ND 4.0', # https://creativecommons.org/licenses/by-nc-nd/4.0/
@@ -54,7 +54,7 @@ setup(
54
54
  python_requires='>=3.7',
55
55
  packages = find_packages('src'),
56
56
  package_dir = {'' : 'src'},
57
- scripts = ['mlatom', 'MLatomF'],
57
+ # scripts = ['mlatom', 'MLatomF'],
58
58
  package_data = {"": ['MLatomF', '*.json', 'cs.so']},
59
59
  classifiers = [
60
60
  "Programming Language :: Python :: 3",
@@ -64,9 +64,13 @@ setup(
64
64
  "Environment :: Console",
65
65
  ],
66
66
  install_requires = ['numpy', 'matplotlib'],
67
- # entry_points = {
68
- # 'console_scripts' : ['mlatom=MLatom.MLatom:MLatomMainCls']
69
- # }
67
+ entry_points = {
68
+ 'console_scripts' : ['mlatom-gui = MLatom.mlatom_gui:main',
69
+ 'mlatom_gui = MLatom.mlatom_gui:main',
70
+ 'mlatom = MLatom.shell_cmd:mlatom',
71
+ # 'MLatom.py = MLatom.shell_cmd:mlatom',
72
+ 'MLatomF = MLatom.shell_cmd:MLatomF']
73
+ }
70
74
  # cmdclass = {
71
75
  # "install_scripts": InstallScripts
72
76
  # }
@@ -0,0 +1,251 @@
1
+ Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License
2
+
3
+ By exercising the Licensed Rights (defined below), You accept and agree to be
4
+ bound by the terms and conditions of this Creative Commons
5
+ Attribution-NonCommercial-NoDerivatives 4.0 International Public License
6
+ ("Public License"). To the extent this Public License may be interpreted as a
7
+ contract, You are granted the Licensed Rights in consideration of Your
8
+ acceptance of these terms and conditions, and the Licensor grants You such
9
+ rights in consideration of benefits the Licensor receives from making the
10
+ Licensed Material available under these terms and conditions.
11
+
12
+ Section 1 – Definitions.
13
+
14
+ a. Adapted Material means material subject to Copyright and Similar Rights
15
+ that is derived from or based upon the Licensed Material and in which
16
+ the Licensed Material is translated, altered, arranged, transformed, or
17
+ otherwise modified in a manner requiring permission under the Copyright
18
+ and Similar Rights held by the Licensor. For purposes of this Public
19
+ License, where the Licensed Material is a musical work, performance, or
20
+ sound recording, Adapted Material is always produced where the Licensed
21
+ Material is synched in timed relation with a moving image.
22
+ b. Copyright and Similar Rights means copyright and/or similar rights
23
+ closely related to copyright including, without limitation,
24
+ performance, broadcast, sound recording, and Sui Generis Database
25
+ Rights, without regard to how the rights are labeled or categorized.
26
+ For purposes of this Public License, the rights specified in Section
27
+ 2(b)(1)-(2) are not Copyright and Similar Rights.
28
+ c. Effective Technological Measures means those measures that, in the
29
+ absence of proper authority, may not be circumvented under laws
30
+ fulfilling obligations under Article 11 of the WIPO Copyright Treaty
31
+ adopted on December 20, 1996, and/or similar international agreements.
32
+ d. Exceptions and Limitations means fair use, fair dealing, and/or any
33
+ other exception or limitation to Copyright and Similar Rights that
34
+ applies to Your use of the Licensed Material.
35
+ e. Licensed Material means the artistic or literary work, database, or
36
+ other material to which the Licensor applied this Public License.
37
+ f. Licensed Rights means the rights granted to You subject to the terms
38
+ and conditions of this Public License, which are limited to all
39
+ Copyright and Similar Rights that apply to Your use of the Licensed
40
+ Material and that the Licensor has authority to license.
41
+ g. Licensor means the individual(s) or entity(ies) granting rights under
42
+ this Public License.
43
+ h. NonCommercial means not primarily intended for or directed towards
44
+ commercial advantage or monetary compensation. For purposes of this
45
+ Public License, the exchange of the Licensed Material for other
46
+ material subject to Copyright and Similar Rights by digital
47
+ file-sharing or similar means is NonCommercial provided there is no
48
+ payment of monetary compensation in connection with the exchange.
49
+ i. Share means to provide material to the public by any means or process
50
+ that requires permission under the Licensed Rights, such as
51
+ reproduction, public display, public performance, distribution,
52
+ dissemination, communication, or importation, and to make material
53
+ available to the public including in ways that members of the public
54
+ may access the material from a place and at a time individually chosen
55
+ by them.
56
+ j. Sui Generis Database Rights means rights other than copyright resulting
57
+ from Directive 96/9/EC of the European Parliament and of the Council of
58
+ 11 March 1996 on the legal protection of databases, as amended and/or
59
+ succeeded, as well as other essentially equivalent rights anywhere in
60
+ the world.
61
+ k. You means the individual or entity exercising the Licensed Rights under
62
+ this Public License. Your has a corresponding meaning.
63
+
64
+ Section 2 – Scope.
65
+
66
+ a. License grant.
67
+ 1. Subject to the terms and conditions of this Public License, the
68
+ Licensor hereby grants You a worldwide, royalty-free,
69
+ non-sublicensable, non-exclusive, irrevocable license to exercise
70
+ the Licensed Rights in the Licensed Material to:
71
+ A. reproduce and Share the Licensed Material, in whole or in part,
72
+ for NonCommercial purposes only; and
73
+ B. produce and reproduce, but not Share, Adapted Material for
74
+ NonCommercial purposes only.
75
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
76
+ Exceptions and Limitations apply to Your use, this Public License
77
+ does not apply, and You do not need to comply with its terms and
78
+ conditions.
79
+ 3. Term. The term of this Public License is specified in Section 6(a).
80
+ 4. Media and formats; technical modifications allowed. The Licensor
81
+ authorizes You to exercise the Licensed Rights in all media and
82
+ formats whether now known or hereafter created, and to make
83
+ technical modifications necessary to do so. The Licensor waives
84
+ and/or agrees not to assert any right or authority to forbid You
85
+ from making technical modifications necessary to exercise the
86
+ Licensed Rights, including technical modifications necessary to
87
+ circumvent Effective Technological Measures. For purposes of this
88
+ Public License, simply making modifications authorized by this
89
+ Section 2(a)(4) never produces Adapted Material.
90
+ 5. Downstream recipients.
91
+ A. Offer from the Licensor – Licensed Material. Every recipient of
92
+ the Licensed Material automatically receives an offer from the
93
+ Licensor to exercise the Licensed Rights under the terms and
94
+ conditions of this Public License.
95
+ B. No downstream restrictions. You may not offer or impose any
96
+ additional or different terms or conditions on, or apply any
97
+ Effective Technological Measures to, the Licensed Material if
98
+ doing so restricts exercise of the Licensed Rights by any
99
+ recipient of the Licensed Material.
100
+ 6. No endorsement. Nothing in this Public License constitutes or may
101
+ be construed as permission to assert or imply that You are, or that
102
+ Your use of the Licensed Material is, connected with, or sponsored,
103
+ endorsed, or granted official status by, the Licensor or others
104
+ designated to receive attribution as provided in Section
105
+ 3(a)(1)(A)(i).
106
+
107
+ b. Other rights.
108
+ 1. Moral rights, such as the right of integrity, are not licensed
109
+ under this Public License, nor are publicity, privacy, and/or other
110
+ similar personality rights; however, to the extent possible, the
111
+ Licensor waives and/or agrees not to assert any such rights held by
112
+ the Licensor to the limited extent necessary to allow You to
113
+ exercise the Licensed Rights, but not otherwise.
114
+ 2. Patent and trademark rights are not licensed under this Public
115
+ License.
116
+ 3. To the extent possible, the Licensor waives any right to collect
117
+ royalties from You for the exercise of the Licensed Rights, whether
118
+ directly or through a collecting society under any voluntary or
119
+ waivable statutory or compulsory licensing scheme. In all other
120
+ cases the Licensor expressly reserves any right to collect such
121
+ royalties, including when the Licensed Material is used other than
122
+ for NonCommercial purposes.
123
+
124
+ Section 3 – License Conditions.
125
+
126
+ Your exercise of the Licensed Rights is expressly made subject to the following conditions.
127
+
128
+ a. Attribution.
129
+
130
+ 1. If You Share the Licensed Material, You must:
131
+ A. retain the following if it is supplied by the Licensor with the
132
+ Licensed Material:
133
+ i. identification of the creator(s) of the Licensed Material
134
+ and any others designated to receive attribution, in any
135
+ reasonable manner requested by the Licensor (including by
136
+ pseudonym if designated);
137
+ ii. a copyright notice;
138
+ iii. a notice that refers to this Public License;
139
+ iv. a notice that refers to the disclaimer of warranties;
140
+ v. a URI or hyperlink to the Licensed Material to the extent
141
+ reasonably practicable;
142
+ B. indicate if You modified the Licensed Material and retain an
143
+ indication of any previous modifications; and
144
+ C. indicate the Licensed Material is licensed under this Public
145
+ License, and include the text of, or the URI or hyperlink to,
146
+ this Public License.
147
+
148
+ For the avoidance of doubt, You do not have permission under this
149
+ Public License to Share Adapted Material.
150
+
151
+ 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable
152
+ manner based on the medium, means, and context in which You Share
153
+ the Licensed Material. For example, it may be reasonable to satisfy
154
+ the conditions by providing a URI or hyperlink to a resource that
155
+ includes the required information.
156
+ 3. If requested by the Licensor, You must remove any of the
157
+ information required by Section 3(a)(1)(A) to the extent reasonably
158
+ practicable.
159
+
160
+ Section 4 – Sui Generis Database Rights.
161
+
162
+ Where the Licensed Rights include Sui Generis Database Rights that apply to
163
+ Your use of the Licensed Material:
164
+
165
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right to
166
+ extract, reuse, reproduce, and Share all or a substantial portion of
167
+ the contents of the database for NonCommercial purposes only and
168
+ provided You do not Share Adapted Material;
169
+ b. if You include all or a substantial portion of the database contents in
170
+ a database in which You have Sui Generis Database Rights, then the
171
+ database in which You have Sui Generis Database Rights (but not its
172
+ individual contents) is Adapted Material; and
173
+ c. You must comply with the conditions in Section 3(a) if You Share all or
174
+ a substantial portion of the contents of the database.
175
+
176
+ For the avoidance of doubt, this Section 4 supplements and does not replace
177
+ Your obligations under this Public License where the Licensed Rights include
178
+ other Copyright and Similar Rights.
179
+
180
+ Section 5 – Disclaimer of Warranties and Limitation of Liability.
181
+
182
+ a. Unless otherwise separately undertaken by the Licensor, to the extent
183
+ possible, the Licensor offers the Licensed Material as-is and
184
+ as-available, and makes no representations or warranties of any kind
185
+ concerning the Licensed Material, whether express, implied, statutory,
186
+ or other. This includes, without limitation, warranties of title,
187
+ merchantability, fitness for a particular purpose, non-infringement,
188
+ absence of latent or other defects, accuracy, or the presence or
189
+ absence of errors, whether or not known or discoverable. Where
190
+ disclaimers of warranties are not allowed in full or in part, this
191
+ disclaimer may not apply to You.
192
+ b. To the extent possible, in no event will the Licensor be liable to You
193
+ on any legal theory (including, without limitation, negligence) or
194
+ otherwise for any direct, special, indirect, incidental, consequential,
195
+ punitive, exemplary, or other losses, costs, expenses, or damages
196
+ arising out of this Public License or use of the Licensed Material,
197
+ even if the Licensor has been advised of the possibility of such
198
+ losses, costs, expenses, or damages. Where a limitation of liability is
199
+ not allowed in full or in part, this limitation may not apply to You.
200
+ c. The disclaimer of warranties and limitation of liability provided above
201
+ shall be interpreted in a manner that, to the extent possible, most
202
+ closely approximates an absolute disclaimer and waiver of all
203
+ liability.
204
+
205
+ Section 6 – Term and Termination.
206
+
207
+ a. This Public License applies for the term of the Copyright and Similar
208
+ Rights licensed here. However, if You fail to comply with this Public
209
+ License, then Your rights under this Public License terminate
210
+ automatically.
211
+ b. Where Your right to use the Licensed Material has terminated under
212
+ Section 6(a), it reinstates:
213
+ 1. automatically as of the date the violation is cured, provided it is
214
+ cured within 30 days of Your discovery of the violation; or
215
+ 2. upon express reinstatement by the Licensor.
216
+
217
+ For the avoidance of doubt, this Section 6(b) does not affect any right
218
+ the Licensor may have to seek remedies for Your violations of this
219
+ Public License.
220
+
221
+ c. For the avoidance of doubt, the Licensor may also offer the Licensed
222
+ Material under separate terms or conditions or stop distributing the
223
+ Licensed Material at any time; however, doing so will not terminate
224
+ this Public License.
225
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
226
+
227
+ Section 7 – Other Terms and Conditions.
228
+
229
+ a. The Licensor shall not be bound by any additional or different terms or
230
+ conditions communicated by You unless expressly agreed.
231
+ b. Any arrangements, understandings, or agreements regarding the Licensed
232
+ Material not stated herein are separate from and independent of the
233
+ terms and conditions of this Public License.
234
+
235
+ Section 8 – Interpretation.
236
+
237
+ a. For the avoidance of doubt, this Public License does not, and shall not
238
+ be interpreted to, reduce, limit, restrict, or impose conditions on any
239
+ use of the Licensed Material that could lawfully be made without
240
+ permission under this Public License.
241
+ b. To the extent possible, if any provision of this Public License is
242
+ deemed unenforceable, it shall be automatically reformed to the minimum
243
+ extent necessary to make it enforceable. If the provision cannot be
244
+ reformed, it shall be severed from this Public License without
245
+ affecting the enforceability of the remaining terms and conditions.
246
+ c. No term or condition of this Public License will be waived and no
247
+ failure to comply consented to unless expressly agreed to by the Licensor.
248
+ d. Nothing in this Public License constitutes or may be interpreted as a
249
+ limitation upon, or waiver of, any privileges and immunities that apply
250
+ to the Licensor or You, including from the legal processes of any
251
+ jurisdiction or authority.
@@ -749,13 +749,13 @@ class GaussCalc(LinuxInterface):
749
749
  self.cd(orig_folder)
750
750
 
751
751
  def process_one_gauss_log(self, log_file: str) -> Tuple[List[float], List[float]]:
752
- cmd = '''grep 'Excited State' %s | awk '{print $5}' > %s/SPC_E.TEMP''' % (log_file, self.temp_path)
752
+ cmd = '''grep -E 'Excited State +?[0-9]+' %s | awk '{print $5}' > %s/SPC_E.TEMP''' % (log_file, self.temp_path)
753
753
  err_code, _ = self.exec(cmd)
754
754
  E_file = os.path.join(self.temp_path, 'SPC_E.TEMP')
755
755
  if err_code != 0:
756
756
  err_print(f'extract E value from one gaussian log failed with error code: {err_code}')
757
757
 
758
- cmd = '''grep 'Excited State' %s | awk '{print $9}' | sed s/f=//g > %s/SPC_f.TEMP''' % (log_file, self.temp_path)
758
+ cmd = '''grep -E 'Excited State +?[0-9]+' %s | awk '{print $9}' | sed s/f=//g > %s/SPC_f.TEMP''' % (log_file, self.temp_path)
759
759
  err_code, _ = self.exec(cmd)
760
760
  f_file = os.path.join(self.temp_path, 'SPC_f.TEMP')
761
761
  if err_code != 0:
@@ -795,8 +795,10 @@ class NewtonXCalc(LinuxInterface):
795
795
  self.cd(self.NX_path)
796
796
  self.change_geom(geom_path)
797
797
  self.run_dynamic(freq_path, atom_num, NEA_point)
798
+ eq_mole = Molecule()
799
+ eq_mole.read_xyz(geom_path)
800
+ self.multi_xyz.append(eq_mole)
798
801
  self.restore_multi_xyz(atom_num)
799
- pass
800
802
 
801
803
  def change_geom(self, geom_path: str) -> None:
802
804
  # check whether trnasfer success (delete /dev/null and then check the output log)
@@ -823,11 +825,18 @@ class NewtonXCalc(LinuxInterface):
823
825
  with open(inp_name, 'w') as f:
824
826
  f.write(nx_inp)
825
827
  # err_code, out = self.exec(f'$NX/initcond.pl > NX-MD.log 2>&1')
826
- err_code, out = self.exec('$NX/mk_qvector < initqp_input ; ' \
827
- '$NX/weight < initqp_input &> weight.log ; ' \
828
- '$NX/initqp < initqp_input &> initqp.log ')
829
- if err_code != 0 or out != '':
830
- err_print(f'Newton-X calculation failed!!!\nstatus code: {err_code} (0 stands for normal exit, none 0 stands for error)\noutput: {out}')
828
+ try:
829
+ err_code, out = self.exec('$NX/mk_qvector < initqp_input ; ' \
830
+ '$NX/weight < initqp_input &> weight.log ; ' \
831
+ '$NX/initqp < initqp_input &> initqp.log ')
832
+ if err_code != 0 or out != '':
833
+ err_print(f'Newton-X calculation failed!!!\nstatus code: {err_code} (0 stands for normal exit, none 0 stands for error)\noutput: {out}')
834
+ except:
835
+ os.system('$NX/mk_qvector < initqp_input ; ' \
836
+ '$NX/weight < initqp_input &> weight.log ; ' \
837
+ '$NX/initqp < initqp_input &> initqp.log ')
838
+ import time
839
+ time.sleep(0.01)
831
840
 
832
841
  def restore_multi_xyz(self, atom_num: int):
833
842
  with open('ini_qv') as f:
@@ -850,6 +859,7 @@ class NewtonXCalc(LinuxInterface):
850
859
  else:
851
860
  err_print('processing ini_qv failed! exit!')
852
861
  exit()
862
+ self.multi_xyz.append(mole)
853
863
 
854
864
  def _process_ini_qv_line(self, splited_line: List[str]) -> List[float]:
855
865
  xyz = map(lambda x: float(x.replace('D', 'e')), splited_line[0: 3])