Skip to content

Commit

Permalink
Ensure shape of lattice vectors (issue pyscf#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Jan 1, 2024
1 parent 27aefeb commit 83b10e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf/pbc/gto/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ def lattice_vectors(self):
a = self.a.replace(';',' ').replace(',',' ').replace('\n',' ')
a = np.asarray([float(x) for x in a.split()]).reshape(3,3)
else:
a = np.asarray(self.a, dtype=np.double)
a = np.asarray(self.a, dtype=np.double).reshape(3,3)
if isinstance(self.unit, str):
if is_au(self.unit):
return a
Expand Down

0 comments on commit 83b10e4

Please sign in to comment.