Skip to content

Commit

Permalink
test_analysis test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiCheng45 committed Jan 15, 2024
1 parent 9c65185 commit e3f0d8f
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


class TestAnalysis(unittest.TestCase):

def test_mean_square_deviation_valid_no_masses_no_root(self):
coords1 = np.array([[1, 1, 1], [2, 1, 1], [3, 1, 1]])
coords2 = np.array([[0, 0, 0], [0, 0, 0], [0, 0, 0]])
Expand Down Expand Up @@ -65,14 +66,3 @@ def test_radius_of_gyration_root(self):
coords = np.array([[1, 2, 1], [2, 1, 1], [10, 5, 5], [1, 1, 2]])
msf = mean_square_fluctuation(coords, True)
self.assertEqual(np.sqrt(19.625), msf)


def suite():
loader = unittest.TestLoader()
s = unittest.TestSuite()
s.addTest(loader.loadTestsFromTestCase(TestAnalysis))
return s


if __name__ == "__main__":
unittest.main(verbosity=2)

0 comments on commit e3f0d8f

Please sign in to comment.