Skip to content

Commit

Permalink
Update gen_cc_struct.py
Browse files Browse the repository at this point in the history
Corrected a typo in printing delta_Q
  • Loading branch information
xw-w authored Dec 30, 2024
1 parent 91c3a5f commit 9453407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/gen_cc_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_init_fin(i_file, f_file, disp_range=np.linspace(-1, 1, 11), output_dir='
masses = np.array([spc.atomic_mass for spc in struct_i.species])
delta_Q2 = masses[:,None] * delta_R ** 2

print('Delta_Q^2', np.sqrt(delta_Q2.sum()))
print('Delta_Q:', np.sqrt(delta_Q2.sum()))

# print(delta_Q2.shape)
# print(struct_i.lattice, struct_i.species, struct_i.cart_coords, )
Expand Down

0 comments on commit 9453407

Please sign in to comment.