From 8310da10475a5b434e562123ec5303e6f0b6e38a Mon Sep 17 00:00:00 2001 From: Dries Van De Putte Date: Tue, 9 Jul 2024 16:59:06 -0400 Subject: [PATCH] Formatting --- pahfit/fitters/ap_components.py | 9 +++++---- pahfit/fitters/ap_fitter.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pahfit/fitters/ap_components.py b/pahfit/fitters/ap_components.py index 68c0549..b05352c 100644 --- a/pahfit/fitters/ap_components.py +++ b/pahfit/fitters/ap_components.py @@ -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) ) @@ -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)) diff --git a/pahfit/fitters/ap_fitter.py b/pahfit/fitters/ap_fitter.py index af18934..af8be31 100644 --- a/pahfit/fitters/ap_fitter.py +++ b/pahfit/fitters/ap_fitter.py @@ -6,7 +6,7 @@ S07_attenuation, att_Drude1D, PowerDrude1D, - PowerGaussian1D + PowerGaussian1D, ) from astropy.modeling.fitting import LevMarLSQFitter import numpy as np