Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
west-public
westpy
Commits
bc35081f
Commit
bc35081f
authored
Jun 24, 2018
by
Marco Govoni
Browse files
Updated geometry file
parent
259f2a7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
westpy/geometry.py
View file @
bc35081f
...
...
@@ -40,7 +40,8 @@ class Geometry(object) :
The method checks that:
- the cell is set
- at least one atom has been added
- the pseudopotentials of all species are defined
- the pseudopotentials of all species are defined
- the pseudopotentials do not contain a mix of upf and xml formats
"""
isValid
=
True
for
key
in
self
.
isSet
.
keys
()
:
...
...
@@ -48,6 +49,7 @@ class Geometry(object) :
if
(
not
self
.
isSet
[
key
]
)
:
print
(
"ERR: set "
+
key
)
isValid
=
isValid
and
self
.
__atomsMatchSpecies
()
isValid
=
isValid
and
self
.
pseudoFormat
in
[
"upf"
,
"xml"
]
return
isValid
#
def
addSpecies
(
self
,
symbol
,
fname
,
url
)
:
...
...
Write
Preview
Markdown
is supported
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