Skip to content

Commit b125ea1

Browse files
author
Marcello Sega
committed
fixes strange bug in cube file format
1 parent ef503a3 commit b125ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytim/cube.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def write_file(filename,
8888
else:
8989
natoms = 0
9090
grid_size = np.array(grid_size, dtype=int)
91-
shift = np.array([1, 1, 1]) * spacing / 2.
91+
shift = -np.array([0, 0, 11 ]) * spacing * Bohr
9292
#spacing = spacing*(grid_size+1.)/grid_size
9393
f.write('CPMD CUBE FILE\n')
9494
f.write('GENERATED BY PYTIM\n')

0 commit comments

Comments
 (0)