Skip to content

Commit c36e9ad

Browse files
committed
Fix warning format
1 parent 36fa629 commit c36e9ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpdata/openmx/omx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def load_cells(lines):
8080
try:
8181
scf_conv = int(token.split("=")[1])
8282
if scf_conv == 0:
83-
warnings.warn(f"SCF not converged!")
83+
warnings.warn("SCF not converged!", stacklevel=2)
8484
except (IndexError, ValueError):
8585
pass
8686
cells = np.array(cells)

0 commit comments

Comments
 (0)