Skip to content

Commit f2bd6df

Browse files
authored
remove duplicated rot_lower_triangular (#370)
`LabeledSystem.rot_lower_triangular` is the same as `System.rot_lower_triangular`. It's not necessary to define twice.
1 parent 42e6877 commit f2bd6df

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

dpdata/system.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,11 +1125,6 @@ def affine_map_fv(self, trans, f_idx) :
11251125
if self.has_virial():
11261126
self.data['virials'][f_idx] = np.matmul(trans.T, np.matmul(self.data['virials'][f_idx], trans))
11271127

1128-
@post_funcs.register("rot_lower_triangular")
1129-
def rot_lower_triangular(self) :
1130-
for ii in range(self.get_nframes()) :
1131-
self.rot_frame_lower_triangular(ii)
1132-
11331128
def rot_frame_lower_triangular(self, f_idx = 0) :
11341129
trans = System.rot_frame_lower_triangular(self, f_idx = f_idx)
11351130
self.affine_map_fv(trans, f_idx = f_idx)

0 commit comments

Comments
 (0)