Skip to content

Commit 204c1f9

Browse files
authored
fix the output format in aveElecStatPot.py (deepmodeling#4367)
* Convert the unit of the average electrostatic potential to eV and also save the results in Ry, and modify the script for calculating and plotting the average electrostatic potential to automatically plot the figure. * fix the output format in aveElecStatPot.py
1 parent 3c3fb66 commit 204c1f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/average_pot/aveElecStatPot.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
output.write("iz\t\t Average(Ry)\t\t z(Angstrom)\t\t Average(eV)\n")
6666
for iz in range(nz):
67-
output.write("{:<7d}\t{:>16.9e}\t{:>16.9e}\t{:>16.9e}\n".format(iz, z_Ang[iz], average[iz], average_eV[iz]))
67+
output.write("{:<7d}\t{:>16.9e}\t{:>16.9e}\t{:>16.9e}\n".format(iz, average[iz], z_Ang[iz], average_eV[iz]))
6868

6969

7070
z_values = z_Ang

0 commit comments

Comments
 (0)