nomad-parser-plugins-atomistic 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.
- atomisticparsers/__init__.py +400 -0
- atomisticparsers/amber/__init__.py +19 -0
- atomisticparsers/amber/__main__.py +31 -0
- atomisticparsers/amber/metainfo/__init__.py +19 -0
- atomisticparsers/amber/metainfo/amber.py +495 -0
- atomisticparsers/amber/parser.py +42 -0
- atomisticparsers/asap/__init__.py +19 -0
- atomisticparsers/asap/__main__.py +31 -0
- atomisticparsers/asap/metainfo/__init__.py +19 -0
- atomisticparsers/asap/metainfo/asap.py +75 -0
- atomisticparsers/asap/parser.py +197 -0
- atomisticparsers/bopfox/__init__.py +19 -0
- atomisticparsers/bopfox/__main__.py +31 -0
- atomisticparsers/bopfox/metainfo/__init__.py +19 -0
- atomisticparsers/bopfox/metainfo/bopfox.py +225 -0
- atomisticparsers/bopfox/parser.py +808 -0
- atomisticparsers/dftbplus/__init__.py +19 -0
- atomisticparsers/dftbplus/__main__.py +31 -0
- atomisticparsers/dftbplus/metainfo/__init__.py +19 -0
- atomisticparsers/dftbplus/metainfo/dftbplus.py +217 -0
- atomisticparsers/dftbplus/parser.py +500 -0
- atomisticparsers/dlpoly/__init__.py +19 -0
- atomisticparsers/dlpoly/__main__.py +31 -0
- atomisticparsers/dlpoly/metainfo/__init__.py +19 -0
- atomisticparsers/dlpoly/metainfo/dl_poly.py +312 -0
- atomisticparsers/dlpoly/parser.py +798 -0
- atomisticparsers/gromacs/__init__.py +19 -0
- atomisticparsers/gromacs/__main__.py +31 -0
- atomisticparsers/gromacs/metainfo/__init__.py +19 -0
- atomisticparsers/gromacs/metainfo/gromacs.py +2388 -0
- atomisticparsers/gromacs/parser.py +1581 -0
- atomisticparsers/gromos/__init__.py +19 -0
- atomisticparsers/gromos/__main__.py +31 -0
- atomisticparsers/gromos/metainfo/__init__.py +19 -0
- atomisticparsers/gromos/metainfo/gromos.py +1995 -0
- atomisticparsers/gromos/parser.py +58 -0
- atomisticparsers/gulp/__init__.py +19 -0
- atomisticparsers/gulp/__main__.py +31 -0
- atomisticparsers/gulp/metainfo/__init__.py +19 -0
- atomisticparsers/gulp/metainfo/gulp.py +1117 -0
- atomisticparsers/gulp/parser.py +1316 -0
- atomisticparsers/h5md/__init__.py +19 -0
- atomisticparsers/h5md/__main__.py +31 -0
- atomisticparsers/h5md/metainfo/__init__.py +19 -0
- atomisticparsers/h5md/metainfo/h5md.py +239 -0
- atomisticparsers/h5md/parser.py +901 -0
- atomisticparsers/lammps/__init__.py +19 -0
- atomisticparsers/lammps/__main__.py +31 -0
- atomisticparsers/lammps/metainfo/__init__.py +19 -0
- atomisticparsers/lammps/metainfo/lammps.py +1417 -0
- atomisticparsers/lammps/parser.py +1753 -0
- atomisticparsers/libatoms/__init__.py +19 -0
- atomisticparsers/libatoms/__main__.py +31 -0
- atomisticparsers/libatoms/metainfo/__init__.py +19 -0
- atomisticparsers/libatoms/metainfo/lib_atoms.py +251 -0
- atomisticparsers/libatoms/parser.py +38 -0
- atomisticparsers/namd/__init__.py +19 -0
- atomisticparsers/namd/__main__.py +31 -0
- atomisticparsers/namd/metainfo/__init__.py +19 -0
- atomisticparsers/namd/metainfo/namd.py +1605 -0
- atomisticparsers/namd/parser.py +312 -0
- atomisticparsers/tinker/__init__.py +19 -0
- atomisticparsers/tinker/__main__.py +31 -0
- atomisticparsers/tinker/metainfo/__init__.py +18 -0
- atomisticparsers/tinker/metainfo/tinker.py +1363 -0
- atomisticparsers/tinker/parser.py +685 -0
- atomisticparsers/utils/__init__.py +22 -0
- atomisticparsers/utils/mdanalysis.py +662 -0
- atomisticparsers/utils/parsers.py +226 -0
- atomisticparsers/xtb/__init__.py +19 -0
- atomisticparsers/xtb/__main__.py +32 -0
- atomisticparsers/xtb/metainfo/__init__.py +19 -0
- atomisticparsers/xtb/metainfo/xtb.py +256 -0
- atomisticparsers/xtb/parser.py +979 -0
- nomad_parser_plugins_atomistic-1.0.dist-info/LICENSE +202 -0
- nomad_parser_plugins_atomistic-1.0.dist-info/METADATA +327 -0
- nomad_parser_plugins_atomistic-1.0.dist-info/RECORD +80 -0
- nomad_parser_plugins_atomistic-1.0.dist-info/WHEEL +5 -0
- nomad_parser_plugins_atomistic-1.0.dist-info/entry_points.txt +15 -0
- nomad_parser_plugins_atomistic-1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
from .parser import LibAtomsParser
|
|
@@ -0,0 +1,31 @@
|
|
|
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 sys
|
|
20
|
+
import json
|
|
21
|
+
import logging
|
|
22
|
+
|
|
23
|
+
from nomad.utils import configure_logging
|
|
24
|
+
from nomad.datamodel import EntryArchive
|
|
25
|
+
from atomisticparsers.libatoms import LibAtomsParser
|
|
26
|
+
|
|
27
|
+
if __name__ == '__main__':
|
|
28
|
+
configure_logging(console_log_level=logging.DEBUG)
|
|
29
|
+
archive = EntryArchive()
|
|
30
|
+
LibAtomsParser().parse(sys.argv[1], archive, logging)
|
|
31
|
+
json.dump(archive.m_to_dict(), sys.stdout, indent=2)
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
from . import lib_atoms
|
|
@@ -0,0 +1,251 @@
|
|
|
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_lib_atoms_section_gap(MSection):
|
|
42
|
+
"""
|
|
43
|
+
Description of Gaussian Approximation Potentials (GAPs).
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
m_def = Section(validate=False)
|
|
47
|
+
|
|
48
|
+
x_lib_atoms_training_config_refs = Quantity(
|
|
49
|
+
type=runschema.calculation.Calculation,
|
|
50
|
+
shape=['n_sparseX'],
|
|
51
|
+
description="""
|
|
52
|
+
References to frames in training configuration.
|
|
53
|
+
""",
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
x_lib_atoms_GAP_params_label = Quantity(
|
|
57
|
+
type=str,
|
|
58
|
+
shape=[],
|
|
59
|
+
description="""
|
|
60
|
+
GAP classifier.
|
|
61
|
+
""",
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
x_lib_atoms_GAP_params_svn_version = Quantity(
|
|
65
|
+
type=str,
|
|
66
|
+
shape=[],
|
|
67
|
+
description="""
|
|
68
|
+
GAP classifier.
|
|
69
|
+
""",
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
x_lib_atoms_GAP_data_do_core = Quantity(
|
|
73
|
+
type=str,
|
|
74
|
+
shape=[],
|
|
75
|
+
description="""
|
|
76
|
+
GAP classifier.
|
|
77
|
+
""",
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
x_lib_atoms_GAP_data_e0 = Quantity(
|
|
81
|
+
type=np.float64,
|
|
82
|
+
shape=[],
|
|
83
|
+
description="""
|
|
84
|
+
GAP classifier.
|
|
85
|
+
""",
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
x_lib_atoms_command_line_command_line = Quantity(
|
|
89
|
+
type=str,
|
|
90
|
+
shape=[],
|
|
91
|
+
description="""
|
|
92
|
+
GAP classifier.
|
|
93
|
+
""",
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
x_lib_atoms_gpSparse_n_coordinate = Quantity(
|
|
97
|
+
type=np.int32,
|
|
98
|
+
shape=[],
|
|
99
|
+
description="""
|
|
100
|
+
GAP classifier.
|
|
101
|
+
""",
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
x_lib_atoms_gpCoordinates_n_permutations = Quantity(
|
|
105
|
+
type=np.int32,
|
|
106
|
+
shape=[],
|
|
107
|
+
description="""
|
|
108
|
+
GAP classifier.
|
|
109
|
+
""",
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
x_lib_atoms_gpCoordinates_sparsified = Quantity(
|
|
113
|
+
type=str,
|
|
114
|
+
shape=[],
|
|
115
|
+
description="""
|
|
116
|
+
GAP classifier.
|
|
117
|
+
""",
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
x_lib_atoms_gpCoordinates_signal_variance = Quantity(
|
|
121
|
+
type=np.float64,
|
|
122
|
+
shape=[],
|
|
123
|
+
description="""
|
|
124
|
+
GAP classifier.
|
|
125
|
+
""",
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
x_lib_atoms_gpCoordinates_label = Quantity(
|
|
129
|
+
type=str,
|
|
130
|
+
shape=[],
|
|
131
|
+
description="""
|
|
132
|
+
GAP classifier.
|
|
133
|
+
""",
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
x_lib_atoms_gpCoordinates_n_sparseX = Quantity(
|
|
137
|
+
type=np.int32,
|
|
138
|
+
shape=[],
|
|
139
|
+
description="""
|
|
140
|
+
GAP classifier.
|
|
141
|
+
""",
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
x_lib_atoms_gpCoordinates_covariance_type = Quantity(
|
|
145
|
+
type=np.int32,
|
|
146
|
+
shape=[],
|
|
147
|
+
description="""
|
|
148
|
+
GAP classifier.
|
|
149
|
+
""",
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
x_lib_atoms_gpCoordinates_signal_mean = Quantity(
|
|
153
|
+
type=np.float64,
|
|
154
|
+
shape=[],
|
|
155
|
+
description="""
|
|
156
|
+
GAP classifier.
|
|
157
|
+
""",
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
x_lib_atoms_gpCoordinates_sparseX_filename = Quantity(
|
|
161
|
+
type=str,
|
|
162
|
+
shape=[],
|
|
163
|
+
description="""
|
|
164
|
+
GAP classifier.
|
|
165
|
+
""",
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
x_lib_atoms_gpCoordinates_dimensions = Quantity(
|
|
169
|
+
type=np.int32,
|
|
170
|
+
shape=[],
|
|
171
|
+
description="""
|
|
172
|
+
GAP classifier.
|
|
173
|
+
""",
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
x_lib_atoms_gpCoordinates_theta = Quantity(
|
|
177
|
+
type=np.float64,
|
|
178
|
+
shape=[],
|
|
179
|
+
description="""
|
|
180
|
+
GAP classifier.
|
|
181
|
+
""",
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
x_lib_atoms_gpCoordinates_descriptor = Quantity(
|
|
185
|
+
type=str,
|
|
186
|
+
shape=[],
|
|
187
|
+
description="""
|
|
188
|
+
GAP classifier.
|
|
189
|
+
""",
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
x_lib_atoms_gpCoordinates_perm_permutation = Quantity(
|
|
193
|
+
type=np.int32,
|
|
194
|
+
shape=[],
|
|
195
|
+
description="""
|
|
196
|
+
GAP classifier.
|
|
197
|
+
""",
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
x_lib_atoms_gpCoordinates_perm_i = Quantity(
|
|
201
|
+
type=np.int32,
|
|
202
|
+
shape=[],
|
|
203
|
+
description="""
|
|
204
|
+
GAP classifier.
|
|
205
|
+
""",
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
x_lib_atoms_gpCoordinates_alpha = Quantity(
|
|
209
|
+
type=np.float64,
|
|
210
|
+
shape=['n_sparseX', 2],
|
|
211
|
+
description="""
|
|
212
|
+
GAP classifier.
|
|
213
|
+
""",
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
x_lib_atoms_gpCoordinates_sparseX = Quantity(
|
|
217
|
+
type=np.float64,
|
|
218
|
+
shape=['n_sparseX', 'dimensions'],
|
|
219
|
+
description="""
|
|
220
|
+
GAP classifier.
|
|
221
|
+
""",
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class Run(runschema.run.Run):
|
|
226
|
+
m_def = Section(validate=False, extends_base_section=True)
|
|
227
|
+
|
|
228
|
+
x_lib_atoms_section_gap = SubSection(
|
|
229
|
+
sub_section=SectionProxy('x_lib_atoms_section_gap'), repeats=False
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
class Calculation(runschema.calculation.Calculation):
|
|
234
|
+
m_def = Section(validate=False, extends_base_section=True)
|
|
235
|
+
|
|
236
|
+
x_lib_atoms_virial_tensor = Quantity(
|
|
237
|
+
type=np.float64,
|
|
238
|
+
shape=[3, 3],
|
|
239
|
+
unit='pascal',
|
|
240
|
+
description="""
|
|
241
|
+
Virial tensor for this frame.
|
|
242
|
+
""",
|
|
243
|
+
)
|
|
244
|
+
|
|
245
|
+
x_lib_atoms_config_type = Quantity(
|
|
246
|
+
type=str,
|
|
247
|
+
shape=[],
|
|
248
|
+
description="""
|
|
249
|
+
Configuration type, e.g. = dislocation_quadrupole.
|
|
250
|
+
""",
|
|
251
|
+
)
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
|
|
20
|
+
from simulationparsers.utils import BasicParser
|
|
21
|
+
from nomad.units import ureg
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class LibAtomsParser:
|
|
25
|
+
def __init__(self):
|
|
26
|
+
re_f = r'\-*\d+\.\d+E*e*\-*\+*\d*'
|
|
27
|
+
|
|
28
|
+
self._parser = BasicParser(
|
|
29
|
+
'libAtoms',
|
|
30
|
+
units_mapping=dict(length=ureg.angstrom, energy=ureg.eV),
|
|
31
|
+
# necessary to include version due to auto type conversion
|
|
32
|
+
program_version=r'(svn\_version\=\"\d+\")',
|
|
33
|
+
atom_labels_atom_positions_atom_forces=r'(\<\!\[CDATA\[[A-Z][a-z]* +[\s\S]+?)(?:\<\!\[CDATA\[\d+\]\]\>|\Z)',
|
|
34
|
+
energy_total=rf'slice\_sample energy\=({re_f})',
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
def parse(self, mainfile, archive, logger=None):
|
|
38
|
+
self._parser.parse(mainfile, archive, logger=None)
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
from .parser import NAMDParser
|
|
@@ -0,0 +1,31 @@
|
|
|
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 sys
|
|
20
|
+
import json
|
|
21
|
+
import logging
|
|
22
|
+
|
|
23
|
+
from nomad.utils import configure_logging
|
|
24
|
+
from nomad.datamodel import EntryArchive
|
|
25
|
+
from atomisticparsers.namd import NAMDParser
|
|
26
|
+
|
|
27
|
+
if __name__ == '__main__':
|
|
28
|
+
configure_logging(console_log_level=logging.DEBUG)
|
|
29
|
+
archive = EntryArchive()
|
|
30
|
+
NAMDParser().parse(sys.argv[1], archive, logging)
|
|
31
|
+
json.dump(archive.m_to_dict(), sys.stdout, indent=2)
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
from . import namd
|