From c04ca03d8f699f157d73f4e18e29471f74979e8b Mon Sep 17 00:00:00 2001 From: szhan Date: Wed, 19 Jun 2024 11:45:36 +0100 Subject: [PATCH] Reformat --- lshmm/api.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lshmm/api.py b/lshmm/api.py index 931ca7a..9d2db7b 100644 --- a/lshmm/api.py +++ b/lshmm/api.py @@ -107,8 +107,11 @@ def check_inputs( # Check the recombination probability. if isinstance(prob_recombination, (int, float)): - pass - elif isinstance(prob_recombination, np.ndarray) and len(prob_recombination) == num_sites: + pass + elif ( + isinstance(prob_recombination, np.ndarray) + and len(prob_recombination) == num_sites + ): if prob_recombination[0] != 0: err_msg = "First value in the recombination probability array must be zero." raise ValueError(err_msg)