Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST:MNT: Ignore ConvergenceWarning when intentionally not converging #211

Merged
merged 1 commit into from
Jun 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions fissa/tests/test_neuropil.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ def test_reduce_dim(self):
self.run_method(self.method, expected_converged=True, maxtries=1, n=2)

def test_manual_seed(self):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
self.run_method(
self.method,
expected_converged=True,
maxtries=1,
random_state=0,
)
self.run_method(
self.method,
expected_converged=True,
maxtries=1,
random_state=0,
)

def test_retry(self):
self.run_method(self.method, maxiter=1, maxtries=3)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
self.run_method(self.method, maxiter=1, maxtries=3)


class TestNeuropilNMF(BaseTestCase, NeuropilMixin):
Expand Down