No skimage test on CI
@@ -58,14 +58,15 @@ def test_motion_functions():
# phase_cross_correlation + gradient_descent_robust
# not tested yet on GH because need skimage
- motions = []
- for conv_engine in ("numpy", "torch"):
+ try:
+ import skimage
pairwise_displacement, pairwise_displacement_weight = compute_pairwise_displacement(
motion_histogram, bin_um, method='phase_cross_correlation')
motion = compute_global_displacement(pairwise_displacement,
pairwise_displacement_weight=pairwise_displacement_weight,
- convergence_method='lsqr_robust',)
- motions.append(motion)
+ convergence_method='lsqr_robust')
+ except ImportError:
+ print("No skimage, not running phase_cross_correlation test.")
# DEBUG
# import matplotlib.pyplot as plt
@@ -89,10 +90,6 @@ def test_motion_functions():
# ax.plot(temporal_bins[:-1], motion)
# plt.show()
- motion_numpy, motion_torch = motions
- assert (motion_numpy == motion_torch).all()
-
-
def test_estimate_motion_rigid():
local_path = download_dataset(
repo=repo, remote_path=remote_path, local_folder=None)
