def test_evaluation_points(self): """Change number of evaluation points.""" def check(ax, n_lines, n_points): self.assertEqual(len(ax.lines), n_lines) # n_filters + sum x, y = ax.lines[0].get_data() self.assertEqual(len(x), n_points) self.assertEqual(len(y), n_points) g = filters.Abspline(self._graph, 5) fig, ax = g.plot(eigenvalues=False) check(ax, 6, 500) fig, ax = g.plot(40, eigenvalues=False) check(ax, 6, 40) fig, ax = g.plot(n=20, eigenvalues=False) check(ax, 6, 20)
def test_abspline(self): f = filters.Abspline(self._G, Nf=4) self._test_methods(f, tight=False)
def test_abspline(G): g = filters.Abspline(G, Nf=4)