Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Oct 7, 2021
1 parent 6d6912d commit 3e13836
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions jaxon/hatp7.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

def get_observed_depths():
kepler_mean_wl = [0.641] # um
kepler_depth = [19e-6] # eyeballed
kepler_depth_err = [10e-6]

all_depths = np.concatenate([depths, spitzer_depth])
all_depths_errs = np.concatenate([depths_err, spitzer_depth_err])
Expand Down Expand Up @@ -68,4 +66,4 @@ def get_planet_params():
return (
planet_name, a_rs, a_rp, T_s, rprs, t0, period, eclipse_half_dur, b,
rstar, rho_star, rp_rstar
)
)
3 changes: 0 additions & 3 deletions jaxon/lightcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ def get_light_curve(cadence=cadence):
slc.time.jd[out_of_transit][~sc.mask], dtype=floatX
)

bin_in_eclipse = np.abs(phase - 0.5) < eclipse_half_dur
unbinned_flux_mean = np.mean(sc[~sc.mask].data)

unbinned_flux_mean_ppm = 1e6 * (unbinned_flux_mean - 1)
flux_normed = np.ascontiguousarray(
1e6 * (sc[~sc.mask].data / unbinned_flux_mean - 1.0), dtype=floatX
)
Expand Down
2 changes: 1 addition & 1 deletion jaxon/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
) * np.pi

from .hatp7 import g
from .tp import get_Tarr, Parr
from .tp import get_Tarr
from .continuum import dtauHminusCtm

import os
Expand Down

0 comments on commit 3e13836

Please sign in to comment.