From 5f15c81dc331646ddfe97ccf085560ac3e372d6a Mon Sep 17 00:00:00 2001 From: JD Smith <93749+jdtsmith@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:53:39 -0500 Subject: [PATCH] argument compactify --- pahfit/model.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pahfit/model.py b/pahfit/model.py index 52971df..7e70776 100644 --- a/pahfit/model.py +++ b/pahfit/model.py @@ -342,14 +342,8 @@ def _convert_spec_data(spec, z): unc = unc_obs * (1 + z) # uncertainty scales with flux return lam_obs, flux_obs, unc_obs, lam, flux, unc - def fit( - self, - spec: Spectrum1D, - redshift=None, - maxiter=1000, - verbose=True, - use_instrument_fwhm=True, - ): + def fit(self, spec: Spectrum1D, redshift=None, maxiter=1000, verbose=True, + use_instrument_fwhm=True): """Fit the observed data. The model setup is based on the features table and instrument @@ -830,9 +824,8 @@ def _excluded_features(self, instrumentname, redshift, lam_obs=None): return is_outside & is_excludable - def _set_up_fitter( - self, instrumentname, redshift, lam=None, use_instrument_fwhm=True - ): + def _set_up_fitter(self, instrumentname, redshift, lam=None, + use_instrument_fwhm=True): """Convert features table to Fitter instance, set self.fitter. For every row of the features table, calls a function of Fitter