@@ -200,7 +200,6 @@ def _raise_on_half_founder(
200
200
raise ValueError ("Pedigree contains half-founders" )
201
201
elif (q < 0 and p >= 0 ) and tau_q > 0 :
202
202
raise ValueError ("Pedigree contains half-founders" )
203
- return
204
203
205
204
206
205
@njit (cache = True )
@@ -213,7 +212,6 @@ def _diploid_self_kinship(
213
212
kinship [i , i ] = 0.5
214
213
else : # non-founder
215
214
kinship [i , i ] = (1 + kinship [p , q ]) / 2
216
- return
217
215
218
216
219
217
@njit (cache = True )
@@ -227,7 +225,6 @@ def _diploid_pair_kinship(
227
225
kinship_ij = (kinship_pj + kinship_qj ) / 2
228
226
kinship [i , j ] = kinship_ij
229
227
kinship [j , i ] = kinship_ij
230
- return
231
228
232
229
233
230
@njit (cache = True )
@@ -422,7 +419,6 @@ def _hamilton_kerr_self_kinship(
422
419
kinship_pq = kinship [p , q ] if (p >= 0 and q >= 0 ) else 0 ,
423
420
)
424
421
kinship [i , i ] = _inbreeding_as_self_kinship (inbreeding_i , ploidy_i )
425
- return
426
422
427
423
428
424
@njit (cache = True )
@@ -437,7 +433,6 @@ def _hamilton_kerr_pair_kinship(
437
433
kinship_ij = (tau_p / ploidy_i ) * kinship_pj + (tau_q / ploidy_i ) * kinship_qj
438
434
kinship [i , j ] = kinship_ij
439
435
kinship [j , i ] = kinship_ij
440
- return
441
436
442
437
443
438
@njit (cache = True )
@@ -841,7 +836,6 @@ def _update_inverse_additive_relationships(
841
836
mtx [p , q ] += frac
842
837
mtx [q , p ] += frac
843
838
mtx [i , i ] += scalar / ploidy_i
844
- return
845
839
846
840
847
841
@njit (cache = True )
0 commit comments