Skip to content

Commit

Permalink
fix GULP class name and opt error in lego module
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Aug 22, 2024
1 parent d5498b6 commit 0943e9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions pyxtal/interface/gulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@
}


class GULP_OC:
class GULP:
"""
A calculator to perform structure optimization in GULP
At the moment, only inorganic crystal is considered
A calculator to perform atomic structure optimization in GULP
Args:
Expand Down
9 changes: 7 additions & 2 deletions pyxtal/lego/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,8 +1107,13 @@ def process_xtal(self, xtal, sim, count=0, xs=None, energy=None,
'similarity': sim[1],
}
if xs is not None:
kvp['x_init'] = np.array2string(xs[0])
kvp['x_opt'] = np.array2string(xs[1])
try:
kvp['x_init'] = np.array2string(xs[0])
kvp['x_opt'] = np.array2string(xs[1])
except:
print("Error in xs", xs)
kvp['x_init'] = 'N/A'
kvp['x_opt'] = 'N/A'
if energy is not None: kvp['ff_energy'] = energy
if topology is not None: kvp['topology'] = topology
if status: db.add_xtal(xtal, kvp)
Expand Down

0 comments on commit 0943e9f

Please sign in to comment.