Skip to content

Commit

Permalink
fix: precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
anyangml committed Mar 7, 2024
1 parent 7748723 commit 254c198
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/tests/pt/model/test_polar_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def setUp(self) -> None:
ntypes=ntypes,
dim_descrpt=1,
embedding_width=1,
sel_type=[i for i in range(ntypes)],
sel_type=list(range(ntypes)),
)
self.ptpolar = PolarFittingNet(
ntypes=ntypes,
Expand All @@ -54,7 +54,6 @@ def test_atomic_consistency(self):
tfbias = self.tfpolar.constant_matrix
self.ptpolar.compute_output_stats(self.sampled)
ptbias = self.ptpolar.constant_matrix
print(tfbias, to_numpy_array(ptbias))
np.testing.assert_allclose(tfbias, to_numpy_array(ptbias))

def test_global_consistency(self):
Expand All @@ -70,5 +69,4 @@ def test_global_consistency(self):
tfbias = self.tfpolar.constant_matrix
self.ptpolar.compute_output_stats(self.sampled)
ptbias = self.ptpolar.constant_matrix
print(tfbias, to_numpy_array(ptbias))
np.testing.assert_allclose(tfbias, to_numpy_array(ptbias))

0 comments on commit 254c198

Please sign in to comment.