Skip to content

Commit

Permalink
fix: Fix dtype error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMichelsen committed Oct 2, 2022
1 parent 38da59d commit c623661
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/metaDMG/fit/fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def add_non_CT_GA_mismatches(fit_result, group_in):
for base in bases:
num = group[base].values
den = group[base[0]].values
ratio = np.divide(num, den, out=np.zeros_like(num), where=den != 0)
ratio = np.divide(
num, den, out=np.zeros(num.shape, dtype=float), where=den != 0
)
out.append(ratio)

# out = np.concatenate(out)
Expand Down

0 comments on commit c623661

Please sign in to comment.