Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
drvdputt committed Jul 9, 2024
1 parent 79cac6f commit 8310da1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions pahfit/fitters/ap_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ class BlackBody1D(Fittable1DModel):

@staticmethod
def evaluate(x, amplitude, temperature):
"""
"""
""" """
return (
amplitude
* 3.97289e13
/ x ** 3
/ x**3
/ (np.exp(1.4387752e4 / x / temperature) - 1.0)
)

Expand Down Expand Up @@ -84,7 +83,9 @@ def kvt(in_x):
# Extend kvt profile to shorter wavelengths
if min(in_x) < min(kvt_wav):
kvt_wav_short = in_x[in_x < min(kvt_wav)]
kvt_int_short_tmp = min(kvt_int) * np.exp(2.03 * (kvt_wav_short - min(kvt_wav)))
kvt_int_short_tmp = min(kvt_int) * np.exp(
2.03 * (kvt_wav_short - min(kvt_wav))
)
# Since kvt_int_shoft_tmp does not reach min(kvt_int),
# we scale it to stitch it.
kvt_int_short = kvt_int_short_tmp * (kvt_int[0] / max(kvt_int_short_tmp))
Expand Down
2 changes: 1 addition & 1 deletion pahfit/fitters/ap_fitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
S07_attenuation,
att_Drude1D,
PowerDrude1D,
PowerGaussian1D
PowerGaussian1D,
)
from astropy.modeling.fitting import LevMarLSQFitter
import numpy as np
Expand Down

0 comments on commit 8310da1

Please sign in to comment.