Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
0076c358
Commit
0076c358
authored
Dec 21, 2021
by
Alvin Noe Ladines
Browse files
Parser fixes issue
#701
parent
af5d77cb
Pipeline
#118309
passed with stages
in 27 minutes and 25 seconds
Changes
13
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cp2k
@
f3ce55d6
Compare
566b1dc9
...
f3ce55d6
Subproject commit
566b1dc9005f261d7b9338bebd7ba6f03f77064f
Subproject commit
f3ce55d656b74d1cdeb86681dd3f104b493a4a18
crystal
@
ba651972
Compare
2ded98fc
...
ba651972
Subproject commit
2ded98fc638765a8ae6b986056d
97
8
2b
37ab9fac
Subproject commit
ba651
972b
85c14f5c35317400c5f41511fe91611
exciting
@
92b5304f
Compare
650f7904
...
92b5304f
Subproject commit
650f790435cea5a8e493
6b
4
c5
119831db9bdb1bd
Subproject commit
92b5304f44de8853e
6bc5
6f22f79fefd6dccbdef
fhi-aims
@
2e725461
Compare
a881fb41
...
2e725461
Subproject commit
a881fb41c5402f1eb08ffd918c5dc77dbc16fc33
Subproject commit
2e725461e9463401c75643d603045ffafe3cab4c
gaussian
@
4e1e2cc7
Compare
c33fb8ea
...
4e1e2cc7
Subproject commit
c33fb8ea93184752c580d2f497a2396399f45fe3
Subproject commit
4e1e2cc790713269232f82b23534be5e1ece6e54
gromacs
@
9a4ba02a
Compare
2401385a
...
9a4ba02a
Subproject commit
2401385ace6243b85c2fb7afd84212662c46958a
Subproject commit
9a4ba02a02016f630640a68ad533f847a9343d58
lammps
@
918f29ba
Compare
4e33076b
...
918f29ba
Subproject commit
4e33076b7b459913ea099ddd5e32aac35600fd98
Subproject commit
918f29baeceaa0c17b2c5cffd3ef04951c9afdd1
octopus
@
c81f95fc
Compare
c2318c4b
...
c81f95fc
Subproject commit c
2318c4b2306a3522ebf36f94e3255b240de3e76
Subproject commit c
81f95fc41677153e83534bde23f97d9ada0b477
openkim
@
b2cf175c
Compare
59ab8301
...
b2cf175c
Subproject commit
59ab8301128b64e74b4bbfe92035a87c97b5adac
Subproject commit
b2cf175c432e2661dea9e5a7788d6439b36b1a9e
vasp
@
40425ea6
Compare
f51c57a0
...
40425ea6
Subproject commit
f51c57a0258510645c019b0f935f3e0f01b79282
Subproject commit
40425ea66319a3390722f63a420e82b2d6277881
wien2k
@
4ac3b4f9
Compare
c8e4fa0a
...
4ac3b4f9
Subproject commit
c8e4fa0a2fab86d2cefc481fcd00969d81520058
Subproject commit
4ac3b4f9fe998d36c037ce90fd907ffe5409e027
nomad/normalizing/results.py
View file @
0076c358
...
@@ -568,6 +568,10 @@ class ResultsNormalizer(Normalizer):
...
@@ -568,6 +568,10 @@ class ResultsNormalizer(Normalizer):
return
conv_atoms
,
prim_atoms
,
wyckoff_sets
,
spg_number
return
conv_atoms
,
prim_atoms
,
wyckoff_sets
,
spg_number
def
structures_2d
(
self
,
original_atoms
):
def
structures_2d
(
self
,
original_atoms
):
conv_atoms
=
None
prim_atoms
=
None
wyckoff_sets
=
None
spg_number
=
None
try
:
try
:
# Get dimension of system by also taking into account the covalent radii
# Get dimension of system by also taking into account the covalent radii
dimensions
=
matid
.
geometry
.
get_dimensions
(
original_atoms
,
[
True
,
True
,
True
])
dimensions
=
matid
.
geometry
.
get_dimensions
(
original_atoms
,
[
True
,
True
,
True
])
...
@@ -580,7 +584,8 @@ class ResultsNormalizer(Normalizer):
...
@@ -580,7 +584,8 @@ class ResultsNormalizer(Normalizer):
# unsufficient (the structure is "wavy" making also the gap highly
# unsufficient (the structure is "wavy" making also the gap highly
# nonlinear).
# nonlinear).
if
sum
(
periodicity
)
!=
2
:
if
sum
(
periodicity
)
!=
2
:
raise
ValueError
(
"could not detect the periodic dimensions in a 2D system"
)
self
.
logger
.
error
(
"could not detect the periodic dimensions in a 2D system"
)
return
conv_atoms
,
prim_atoms
,
wyckoff_sets
,
spg_number
# Center the system in the non-periodic direction, also taking
# Center the system in the non-periodic direction, also taking
# periodicity into account. The get_center_of_mass()-function in MatID
# periodicity into account. The get_center_of_mass()-function in MatID
...
@@ -655,7 +660,8 @@ class ResultsNormalizer(Normalizer):
...
@@ -655,7 +660,8 @@ class ResultsNormalizer(Normalizer):
# If one axis is not periodic, return. This only happens if the vacuum
# If one axis is not periodic, return. This only happens if the vacuum
# gap is not aligned with a cell vector.
# gap is not aligned with a cell vector.
if
sum
(
periodicity
)
!=
1
:
if
sum
(
periodicity
)
!=
1
:
raise
ValueError
(
"could not detect the periodic dimensions in a 1D system"
)
self
.
logger
.
error
(
"could not detect the periodic dimensions in a 1D system"
)
return
conv_atoms
,
prim_atoms
# Translate to center of mass
# Translate to center of mass
conv_atoms
=
prim_atoms
.
copy
()
conv_atoms
=
prim_atoms
.
copy
()
...
...
nomad/normalizing/workflow.py
View file @
0076c358
...
@@ -420,7 +420,11 @@ class WorkflowNormalizer(Normalizer):
...
@@ -420,7 +420,11 @@ class WorkflowNormalizer(Normalizer):
def
_resolve_workflow_type
(
self
,
run
):
def
_resolve_workflow_type
(
self
,
run
):
# resolve it from parser
# resolve it from parser
workflow_type
=
None
workflow_type
=
None
program_name
=
run
.
program
.
name
try
:
program_name
=
run
.
program
.
name
except
Exception
:
return
if
program_name
:
if
program_name
:
program_name
=
program_name
.
lower
()
program_name
=
program_name
.
lower
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment