Skip to content

Commit

Permalink
Merge pull request #5 from alexbinks/fix_np_warn
Browse files Browse the repository at this point in the history
fixed np.math warning
  • Loading branch information
alexbinks authored May 16, 2024
2 parents f7ad019 + 7c534ea commit ac10974
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tessilator/contaminants.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import inspect
import sys
import traceback

import math

# Third party imports
import numpy as np
Expand Down Expand Up @@ -166,9 +166,9 @@ def flux_fraction_contaminant(pix_sep, s, d_thr=5.e-6):
while True:
n_old = n_0
n_sign_old = n_sign
sk = np.sum([(s**(k)/np.math.factorial(k)) for k in range(0,n+1)])
sk = np.sum([(s**(k)/math.factorial(k)) for k in range(0,n+1)])
sx = 1.0 - (np.exp(-s)*sk)
n_0 = ((t**n)/np.math.factorial(n))*sx
n_0 = ((t**n)/math.factorial(n))*sx
n_sign = np.sign(n_0-n_old)
n_z += n_0

Expand Down

0 comments on commit ac10974

Please sign in to comment.