Skip to content

Commit

Permalink
bug fixes: update energy of cube to au (hartree)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinzyb committed Oct 23, 2023
1 parent 8bdaf02 commit 1593c18
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion cp2kdata/cube/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ def read_cube_vals(self):
cube_vals = cube_vals.split()
cube_vals = np.array(cube_vals, dtype = float)
cube_vals = cube_vals.reshape(self.grid_size)
cube_vals = cube_vals*au2eV
return cube_vals

def get_pav(self, axis="z", interpolate=False):
Expand Down
1 change: 1 addition & 0 deletions cp2kdata/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def parse_geo_opt(self):
self.init_atomic_coordinates, self.atom_kind_list, self.chemical_symbols = parse_init_atomic_coordinates(
self.output_file)
self.geo_opt_info = parse_geo_opt_info(self.output_file)
self.energies_list = parse_energies_list(self.output_file)
self.num_frames = len(self.geo_opt_info)
self.atomic_forces_list = parse_atomic_forces_list(self.output_file)
self.stress_tensor_list = parse_stress_tensor_list(self.output_file)
Expand Down
Binary file modified tests/test_cube/answer_Si_bulk8-v_hartree-1_0.cube/cube_vals.npy
Binary file not shown.
Binary file modified tests/test_cube/answer_Si_bulk8-v_hartree-1_0.cube/mav.npy
Binary file not shown.
Binary file modified tests/test_cube/answer_Si_bulk8-v_hartree-1_0.cube/pav.npy
Binary file not shown.

0 comments on commit 1593c18

Please sign in to comment.