Skip to content

Commit 4e00098

Browse files
author
Chad Curtis
committed
Fixed testing function.
1 parent 875cfa0 commit 4e00098

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

diff_classifier/tests/test_pca.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ def test_pca_analysis():
6161
feat = ft.calculate_features(msds)
6262
pcadataset = pca.pca_analysis(feat, dropcols=['frames', 'Track_ID'],
6363
n_components=5)
64-
try:
65-
npt.assert_equal(np.round(np.sum(pcadataset.components.values), 3), -0.971)
66-
else:
67-
npt.assert_equal(np.round(np.sum(pcadataset.components.values), 3), 0.400)
64+
65+
npt.assert_equal(np.round(np.sum(pcadataset.components.values), 3), 0.400)
6866

6967

7068
def test_plot_pca():

0 commit comments

Comments
 (0)