nomad-parser-plugins-workflow 1.0__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.
Files changed (58) hide show
  1. nomad_parser_plugins_workflow-1.0.dist-info/LICENSE +202 -0
  2. nomad_parser_plugins_workflow-1.0.dist-info/METADATA +319 -0
  3. nomad_parser_plugins_workflow-1.0.dist-info/RECORD +58 -0
  4. nomad_parser_plugins_workflow-1.0.dist-info/WHEEL +5 -0
  5. nomad_parser_plugins_workflow-1.0.dist-info/entry_points.txt +11 -0
  6. nomad_parser_plugins_workflow-1.0.dist-info/top_level.txt +1 -0
  7. workflowparsers/__init__.py +314 -0
  8. workflowparsers/aflow/__init__.py +19 -0
  9. workflowparsers/aflow/__main__.py +31 -0
  10. workflowparsers/aflow/metainfo/__init__.py +19 -0
  11. workflowparsers/aflow/metainfo/aflow.py +1240 -0
  12. workflowparsers/aflow/parser.py +741 -0
  13. workflowparsers/asr/__init__.py +19 -0
  14. workflowparsers/asr/__main__.py +31 -0
  15. workflowparsers/asr/metainfo/__init__.py +19 -0
  16. workflowparsers/asr/metainfo/asr.py +306 -0
  17. workflowparsers/asr/parser.py +266 -0
  18. workflowparsers/atomate/__init__.py +19 -0
  19. workflowparsers/atomate/__main__.py +31 -0
  20. workflowparsers/atomate/metainfo/__init__.py +19 -0
  21. workflowparsers/atomate/metainfo/atomate.py +395 -0
  22. workflowparsers/atomate/parser.py +357 -0
  23. workflowparsers/elastic/__init__.py +19 -0
  24. workflowparsers/elastic/__main__.py +31 -0
  25. workflowparsers/elastic/metainfo/__init__.py +19 -0
  26. workflowparsers/elastic/metainfo/elastic.py +364 -0
  27. workflowparsers/elastic/parser.py +798 -0
  28. workflowparsers/fhivibes/__init__.py +19 -0
  29. workflowparsers/fhivibes/__main__.py +31 -0
  30. workflowparsers/fhivibes/metainfo/__init__.py +19 -0
  31. workflowparsers/fhivibes/metainfo/fhi_vibes.py +898 -0
  32. workflowparsers/fhivibes/parser.py +566 -0
  33. workflowparsers/lobster/__init__.py +19 -0
  34. workflowparsers/lobster/__main__.py +31 -0
  35. workflowparsers/lobster/metainfo/__init__.py +19 -0
  36. workflowparsers/lobster/metainfo/lobster.py +446 -0
  37. workflowparsers/lobster/parser.py +618 -0
  38. workflowparsers/phonopy/__init__.py +19 -0
  39. workflowparsers/phonopy/__main__.py +31 -0
  40. workflowparsers/phonopy/calculator.py +260 -0
  41. workflowparsers/phonopy/metainfo/__init__.py +19 -0
  42. workflowparsers/phonopy/metainfo/phonopy.py +83 -0
  43. workflowparsers/phonopy/parser.py +583 -0
  44. workflowparsers/quantum_espresso_epw/__init__.py +19 -0
  45. workflowparsers/quantum_espresso_epw/__main__.py +31 -0
  46. workflowparsers/quantum_espresso_epw/metainfo/__init__.py +19 -0
  47. workflowparsers/quantum_espresso_epw/metainfo/quantum_espresso_epw.py +579 -0
  48. workflowparsers/quantum_espresso_epw/parser.py +583 -0
  49. workflowparsers/quantum_espresso_phonon/__init__.py +19 -0
  50. workflowparsers/quantum_espresso_phonon/__main__.py +31 -0
  51. workflowparsers/quantum_espresso_phonon/metainfo/__init__.py +19 -0
  52. workflowparsers/quantum_espresso_phonon/metainfo/quantum_espresso_phonon.py +389 -0
  53. workflowparsers/quantum_espresso_phonon/parser.py +483 -0
  54. workflowparsers/quantum_espresso_xspectra/__init__.py +19 -0
  55. workflowparsers/quantum_espresso_xspectra/__main__.py +31 -0
  56. workflowparsers/quantum_espresso_xspectra/metainfo/__init__.py +19 -0
  57. workflowparsers/quantum_espresso_xspectra/metainfo/quantum_espresso_xspectra.py +290 -0
  58. workflowparsers/quantum_espresso_xspectra/parser.py +586 -0
@@ -0,0 +1,364 @@
1
+ #
2
+ # Copyright The NOMAD Authors.
3
+ #
4
+ # This file is part of NOMAD.
5
+ # See https://nomad-lab.eu for further info.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ import numpy as np # pylint: disable=unused-import
20
+ import typing # pylint: disable=unused-import
21
+ from nomad.metainfo import ( # pylint: disable=unused-import
22
+ MSection,
23
+ MCategory,
24
+ Category,
25
+ Package,
26
+ Quantity,
27
+ Section,
28
+ SubSection,
29
+ SectionProxy,
30
+ Reference,
31
+ )
32
+ import runschema.run # pylint: disable=unused-import
33
+ import runschema.calculation # pylint: disable=unused-import
34
+ import runschema.method # pylint: disable=unused-import
35
+ import runschema.system # pylint: disable=unused-import
36
+
37
+
38
+ m_package = Package()
39
+
40
+
41
+ class x_elastic_section_strain_diagrams(MSection):
42
+ """
43
+ section collecting the data of the strain diagrams
44
+ """
45
+
46
+ m_def = Section(validate=False)
47
+
48
+ x_elastic_strain_diagram_values = Quantity(
49
+ type=np.float64,
50
+ shape=[
51
+ 'x_elastic_number_of_deformations',
52
+ 'x_elastic_strain_diagram_number_of_eta',
53
+ ],
54
+ description="""
55
+ Values of the energy(units:J)/d2E(units:Pa)/cross-validation (depending on the
56
+ value of x_elastic_strain_diagram_type)
57
+ """,
58
+ )
59
+
60
+ x_elastic_strain_diagram_eta_values = Quantity(
61
+ type=np.float64,
62
+ shape=[
63
+ 'x_elastic_number_of_deformations',
64
+ 'x_elastic_strain_diagram_number_of_eta',
65
+ ],
66
+ description="""
67
+ eta values used the strain diagrams
68
+ """,
69
+ )
70
+
71
+ x_elastic_strain_diagram_number_of_eta = Quantity(
72
+ type=np.int32,
73
+ shape=[],
74
+ description="""
75
+ Number of strain values used in the strain diagram
76
+ """,
77
+ )
78
+
79
+ x_elastic_strain_diagram_type = Quantity(
80
+ type=str,
81
+ shape=[],
82
+ description="""
83
+ Kind of strain diagram. Possible values are: energy; cross-validation (cross-
84
+ validation error); d2E (second derivative of the energy wrt the strain)
85
+ """,
86
+ )
87
+
88
+ x_elastic_strain_diagram_polynomial_fit_order = Quantity(
89
+ type=np.int32,
90
+ shape=[],
91
+ description="""
92
+ Order of the polynomial fit
93
+ """,
94
+ )
95
+
96
+
97
+ class x_elastic_section_fitting_parameters(MSection):
98
+ """
99
+ section collecting the fitting parameters used to calculate the elastic constants
100
+ """
101
+
102
+ m_def = Section(validate=False)
103
+
104
+ x_elastic_fitting_parameters_eta = Quantity(
105
+ type=np.float64,
106
+ shape=['x_elastic_number_of_deformations'],
107
+ description="""
108
+ eta values used to calculate the elastic constants
109
+ """,
110
+ )
111
+
112
+ x_elastic_fitting_parameters_polynomial_order = Quantity(
113
+ type=np.int32,
114
+ shape=['x_elastic_number_of_deformations'],
115
+ description="""
116
+ polynomial order used to fit the Energy vs. volume curve and to calculate the
117
+ elastic constants
118
+ """,
119
+ )
120
+
121
+
122
+ class Method(runschema.method.Method):
123
+ m_def = Section(validate=False, extends_base_section=True)
124
+
125
+ # x_elastic_elastic_constant_order = Quantity(
126
+ # type=np.int32,
127
+ # shape=[],
128
+ # description='''
129
+ # Order of the elastic constant
130
+ # ''',
131
+ # a_legacy=LegacyDefinition(name='x_elastic_elastic_constant_order'))
132
+
133
+ # x_elastic_number_of_deformations = Quantity(
134
+ # type=np.int32,
135
+ # shape=[],
136
+ # description='''
137
+ # number of deformed structures equally spaced in strain, which are generated
138
+ # between the maximum negative strain and the maximum positive one
139
+ # ''',
140
+ # a_legacy=LegacyDefinition(name='x_elastic_number_of_deformations'))
141
+
142
+ # x_elastic_deformation_types = Quantity(
143
+ # type=np.int32,
144
+ # shape=['x_elastic_number_of_deformations', 6],
145
+ # description='''
146
+ # deformation types
147
+ # ''',
148
+ # a_legacy=LegacyDefinition(name='x_elastic_deformation_types'))
149
+
150
+ # x_elastic_calculation_method = Quantity(
151
+ # type=str,
152
+ # shape=[],
153
+ # description='''
154
+ # Method of calculation
155
+ # ''',
156
+ # a_legacy=LegacyDefinition(name='x_elastic_calculation_method'))
157
+
158
+ # x_elastic_code = Quantity(
159
+ # type=str,
160
+ # shape=[],
161
+ # description='''
162
+ # Code used for the calculation of the elastic constants
163
+ # ''',
164
+ # a_legacy=LegacyDefinition(name='x_elastic_code'))
165
+
166
+ # x_elastic_max_lagrangian_strain = Quantity(
167
+ # type=np.float64,
168
+ # shape=[],
169
+ # description='''
170
+ # Maximum lagrangian strain used to calculate the elastic constants
171
+ # ''',
172
+ # a_legacy=LegacyDefinition(name='x_elastic_max_lagrangian_strain'))
173
+
174
+ # x_elastic_number_of_distorted_structures = Quantity(
175
+ # type=np.int32,
176
+ # shape=[],
177
+ # description='''
178
+ # Number of distorted structures used to calculate the elastic constants
179
+ # ''',
180
+ # a_legacy=LegacyDefinition(name='x_elastic_number_of_distorted_structures'))
181
+
182
+ x_elastic_section_fitting_parameters = SubSection(
183
+ sub_section=SectionProxy('x_elastic_section_fitting_parameters'), repeats=True
184
+ )
185
+
186
+
187
+ # class section_single_configuration_calculation(public.section_single_configuration_calculation):
188
+
189
+ # m_def = Section(validate=False, extends_base_section=True)
190
+
191
+ # x_elastic_2nd_order_constants_notation_matrix = Quantity(
192
+ # type=np.int32,
193
+ # shape=[6, 6],
194
+ # description='''
195
+ # Symmetry of the second-order elastic constant matrix in Voigt notation
196
+ # ''',
197
+ # a_legacy=LegacyDefinition(name='x_elastic_2nd_order_constants_notation_matrix'))
198
+
199
+ # x_elastic_2nd_order_constants_matrix = Quantity(
200
+ # type=np.float64,
201
+ # shape=[6, 6],
202
+ # unit='pascal',
203
+ # description='''
204
+ # 2nd order elastic constant (stiffness) matrix in GPa
205
+ # ''',
206
+ # a_legacy=LegacyDefinition(name='x_elastic_2nd_order_constants_matrix'))
207
+
208
+ # x_elastic_3rd_order_constants_matrix = Quantity(
209
+ # type=np.float64,
210
+ # shape=[6, 6, 6],
211
+ # unit='pascal',
212
+ # description='''
213
+ # 3rd order elastic constant (stiffness) matrix in GPa
214
+ # ''',
215
+ # a_legacy=LegacyDefinition(name='x_elastic_3rd_order_constants_matrix'))
216
+
217
+ # x_elastic_2nd_order_constants_compliance_matrix = Quantity(
218
+ # type=np.float64,
219
+ # shape=[6, 6],
220
+ # unit='1 / pascal',
221
+ # description='''
222
+ # Elastic compliance matrix in 1/GPa
223
+ # ''',
224
+ # a_legacy=LegacyDefinition(name='x_elastic_2nd_order_constants_compliance_matrix'))
225
+
226
+ # x_elastic_Voigt_bulk_modulus = Quantity(
227
+ # type=np.float64,
228
+ # shape=[],
229
+ # unit='pascal',
230
+ # description='''
231
+ # Voigt bulk modulus
232
+ # ''',
233
+ # a_legacy=LegacyDefinition(name='x_elastic_Voigt_bulk_modulus'))
234
+
235
+ # x_elastic_Voigt_shear_modulus = Quantity(
236
+ # type=np.float64,
237
+ # shape=[],
238
+ # unit='pascal',
239
+ # description='''
240
+ # Voigt shear modulus
241
+ # ''',
242
+ # a_legacy=LegacyDefinition(name='x_elastic_Voigt_shear_modulus'))
243
+
244
+ # x_elastic_Reuss_bulk_modulus = Quantity(
245
+ # type=np.float64,
246
+ # shape=[],
247
+ # unit='pascal',
248
+ # description='''
249
+ # Reuss bulk modulus
250
+ # ''',
251
+ # a_legacy=LegacyDefinition(name='x_elastic_Reuss_bulk_modulus'))
252
+
253
+ # x_elastic_Reuss_shear_modulus = Quantity(
254
+ # type=np.float64,
255
+ # shape=[],
256
+ # unit='pascal',
257
+ # description='''
258
+ # Reuss shear modulus
259
+ # ''',
260
+ # a_legacy=LegacyDefinition(name='x_elastic_Reuss_shear_modulus'))
261
+
262
+ # x_elastic_Hill_bulk_modulus = Quantity(
263
+ # type=np.float64,
264
+ # shape=[],
265
+ # unit='pascal',
266
+ # description='''
267
+ # Hill bulk modulus
268
+ # ''',
269
+ # a_legacy=LegacyDefinition(name='x_elastic_Hill_bulk_modulus'))
270
+
271
+ # x_elastic_Hill_shear_modulus = Quantity(
272
+ # type=np.float64,
273
+ # shape=[],
274
+ # unit='pascal',
275
+ # description='''
276
+ # Hill shear modulus
277
+ # ''',
278
+ # a_legacy=LegacyDefinition(name='x_elastic_Hill_shear_modulus'))
279
+
280
+ # x_elastic_Voigt_Young_modulus = Quantity(
281
+ # type=np.float64,
282
+ # shape=[],
283
+ # unit='pascal',
284
+ # description='''
285
+ # Voigt Young modulus
286
+ # ''',
287
+ # a_legacy=LegacyDefinition(name='x_elastic_Voigt_Young_modulus'))
288
+
289
+ # x_elastic_Voigt_Poisson_ratio = Quantity(
290
+ # type=np.float64,
291
+ # shape=[],
292
+ # description='''
293
+ # Voigt Poisson ratio
294
+ # ''',
295
+ # a_legacy=LegacyDefinition(name='x_elastic_Voigt_Poisson_ratio'))
296
+
297
+ # x_elastic_Reuss_Young_modulus = Quantity(
298
+ # type=np.float64,
299
+ # shape=[],
300
+ # unit='pascal',
301
+ # description='''
302
+ # Reuss Young modulus
303
+ # ''',
304
+ # a_legacy=LegacyDefinition(name='x_elastic_Reuss_Young_modulus'))
305
+
306
+ # x_elastic_Reuss_Poisson_ratio = Quantity(
307
+ # type=np.float64,
308
+ # shape=[],
309
+ # description='''
310
+ # Reuss Poisson ratio
311
+ # ''',
312
+ # a_legacy=LegacyDefinition(name='x_elastic_Reuss_Poisson_ratio'))
313
+
314
+ # x_elastic_Hill_Young_modulus = Quantity(
315
+ # type=np.float64,
316
+ # shape=[],
317
+ # unit='pascal',
318
+ # description='''
319
+ # Hill Young modulus
320
+ # ''',
321
+ # a_legacy=LegacyDefinition(name='x_elastic_Hill_Young_modulus'))
322
+
323
+ # x_elastic_Hill_Poisson_ratio = Quantity(
324
+ # type=np.float64,
325
+ # shape=[],
326
+ # description='''
327
+ # Hill Poisson ratio
328
+ # ''',
329
+ # a_legacy=LegacyDefinition(name='x_elastic_Hill_Poisson_ratio'))
330
+
331
+ # x_elastic_eigenvalues = Quantity(
332
+ # type=np.float64,
333
+ # shape=[6],
334
+ # unit='pascal',
335
+ # description='''
336
+ # Eigemvalues of the stiffness matrix
337
+ # ''',
338
+ # a_legacy=LegacyDefinition(name='x_elastic_eigenvalues'))
339
+
340
+ # x_elastic_section_strain_diagrams = SubSection(
341
+ # sub_section=SectionProxy('x_elastic_section_strain_diagrams'),
342
+ # repeats=True,
343
+ # a_legacy=LegacyDefinition(name='x_elastic_section_strain_diagrams'))
344
+
345
+
346
+ class System(runschema.system.System):
347
+ m_def = Section(validate=False, extends_base_section=True)
348
+
349
+ x_elastic_space_group_number = Quantity(
350
+ type=np.int32,
351
+ shape=[],
352
+ description="""
353
+ Space-group number of the system
354
+ """,
355
+ )
356
+
357
+ x_elastic_unit_cell_volume = Quantity(
358
+ type=np.float64,
359
+ shape=[],
360
+ unit='m ** 3',
361
+ description="""
362
+ Volume of the equilibrium unit cell
363
+ """,
364
+ )