From 2559209c5643d964bed1db4e836659e67576ce19 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Wed, 9 Nov 2022 15:39:16 -0500 Subject: [PATCH] remove duplicated rot_lower_triangular `LabeledSystem.rot_lower_triangular` is the same as `System.rot_lower_triangular`. It's not necessary to define twice. --- dpdata/system.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dpdata/system.py b/dpdata/system.py index a2226d030..5451e22ae 100644 --- a/dpdata/system.py +++ b/dpdata/system.py @@ -1125,11 +1125,6 @@ def affine_map_fv(self, trans, f_idx) : if self.has_virial(): self.data['virials'][f_idx] = np.matmul(trans.T, np.matmul(self.data['virials'][f_idx], trans)) - @post_funcs.register("rot_lower_triangular") - def rot_lower_triangular(self) : - for ii in range(self.get_nframes()) : - self.rot_frame_lower_triangular(ii) - def rot_frame_lower_triangular(self, f_idx = 0) : trans = System.rot_frame_lower_triangular(self, f_idx = f_idx) self.affine_map_fv(trans, f_idx = f_idx)