Skip to content

Commit 696ba73

Browse files
authored
fix typo (#813)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Renamed an internal coordinate conversion utility for improved clarity and consistency, with no impact on functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: root <pxlxingliang>
1 parent 8187300 commit 696ba73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpdata/abacus/stru.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def get_atom_mag_cartesian(atommag, angle1, angle2):
314314
]
315315

316316

317-
def get_carteisan_coords(coords, coord_type, celldm, cell):
317+
def get_cartesian_coords(coords, coord_type, celldm, cell):
318318
"""Transform the atomic coordinates to cartesian coordinates.
319319
320320
Args:
@@ -378,7 +378,7 @@ def parse_pos(coords_lines, atom_names, celldm, cell):
378378
parse_pos_oneline(coords_lines[line_idx])
379379
)
380380

381-
coords.append(get_carteisan_coords(np.array(pos), coord_type, celldm, cell))
381+
coords.append(get_cartesian_coords(np.array(pos), coord_type, celldm, cell))
382382

383383
move.append(imove)
384384
velocity.append(ivelocity)

0 commit comments

Comments
 (0)