Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nquesada authored Sep 26, 2024
1 parent 0e59bd4 commit d902320
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion thewalrus/_hafnian.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@ def hafnian(

if method == "godsilgutman":
return hafnian_approx(A, num_samples=num_samples, method=method)

return hafnian_approx(A, num_samples=num_samples, method="barvinok")

if loop:
Expand Down
3 changes: 1 addition & 2 deletions thewalrus/tests/test_hafnian_approx.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
# limitations under the License.
"""Tests for the hafnian_approx Python function"""
# pylint: disable=redefined-outer-name
import pytest

import numpy as np
import pytest
from scipy.special import factorial2, factorial as fac

from thewalrus import hafnian
Expand Down

0 comments on commit d902320

Please sign in to comment.