Skip to content

Commit

Permalink
Remove image comparison for clustering metric, as it depends too much…
Browse files Browse the repository at this point in the history
… on scikit-learn
  • Loading branch information
ericpre committed Jul 11, 2023
1 parent 961e2a0 commit 25718d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Binary file not shown.
5 changes: 1 addition & 4 deletions hyperspy/tests/drawing/test_plot_mva.py
Expand Up @@ -185,11 +185,8 @@ def test_plot_cluster_distances_nav2_sig2(self):
def test_plot_cluster_signals_nav2_sig2(self):
return self.s3.plot_cluster_signals()

@pytest.mark.mpl_image_compare(
baseline_dir=baseline_dir, tolerance=default_tol*2)
def test_plot_cluster_metric(self):
ax = self.s.plot_cluster_metric()
return ax.get_figure()
self.s.plot_cluster_metric()

def test_except_nocluster_metric(self):
with pytest.raises(ValueError):
Expand Down

0 comments on commit 25718d1

Please sign in to comment.