Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Jun 19, 2024
1 parent 40bfd5f commit c04ca03
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lshmm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c04ca03

Please sign in to comment.