Skip to content

Commit 5ce351a

Browse files
committed
Fix bug in update xsd.
1 parent f8fc9e6 commit 5ce351a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vaspy/matstudio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Provide Material Studio markup file class which do operations on these files.
55
=============================================================================
66
Written by PytLab <[email protected]>, August 2015
7-
Updated by PytLab <[email protected]>, October 2016
7+
Updated by PytLab <[email protected]>, Novermber 2016
88
==============================================================
99
1010
"""
@@ -298,7 +298,7 @@ def update_name(self):
298298
"""
299299
value = ""
300300
for key, attr in zip(['E', 'F', 'M'], ["energy", "force", "magnetism"]):
301-
data = getattr(self, attr)
301+
data = getattr(self, attr, 0.0)
302302
value += "{}:{} ".format(key, data)
303303
value = value.strip()
304304

0 commit comments

Comments
 (0)