Skip to content

Commit

Permalink
FORMAT: run precommits
Browse files Browse the repository at this point in the history
  • Loading branch information
ColmTalbot committed Dec 19, 2023
1 parent 5ad729b commit 189bcc1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gwpopulation/vt.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def check_convergence(self, mu, var):
converged = mu**2 > 4 * self.n_events * var
return (
converged,
xp.nan_to_num(xp.inf * (1 - converged), nan=0, posinf=xp.inf)
xp.nan_to_num(xp.inf * (1 - converged), nan=0, posinf=xp.inf),
)

def vt_factor(self, parameters):
Expand Down
1 change: 1 addition & 0 deletions test/backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def test_import_error_caught_for_mangled_install():
FIXME: figure out how to replace this with mock
"""

def _import(module):
raise ImportError

Expand Down
1 change: 1 addition & 0 deletions test/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def test_callable_condition_satisfied():

def test_non_callable_op_raises_error():
gwpopulation.set_backend("numpy")

@gwpopulation.utils.apply_conditions(dict(a=("ge", 0)))
def _condition_func(a):
return
Expand Down

0 comments on commit 189bcc1

Please sign in to comment.