Skip to content

Commit

Permalink
Fix test for Filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
ulupo committed Jul 22, 2020
1 parent 6017caf commit f8588dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtda/diagrams/tests/test_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def test_filt_transform_zero(X):
def test_filt_transform(epsilon):
filt = Filtering(epsilon=epsilon)
X_res_1 = filt.fit_transform(X_1)
assert X_res_1.shape == X_1.shape
assert X_res_1.shape[1] <= X_1.shape[1]

lifetimes_res_1 = X_res_1[:, :, 1] - X_res_1[:, :, 0]
assert not ((lifetimes_res_1 > 0.) & (lifetimes_res_1 <= epsilon)).any()

0 comments on commit f8588dc

Please sign in to comment.