Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Dec 14, 2023
1 parent 1389080 commit 58fb24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynta/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def generate_slab(self,skip_launch=False):
if self.a is None:
a = get_lattice_parameters(self.metal,self.surface_type,self.software,self.lattice_opt_software_kwargs)
print("computed lattice constants of: {} Angstroms".format(a))
if not isinstance(a,list):
if isinstance(a,float):
self.a = a
else:
self.a = a[0]
Expand Down

0 comments on commit 58fb24d

Please sign in to comment.