Skip to content

Commit

Permalink
argument compactify
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtsmith committed Nov 30, 2024
1 parent 6defaa9 commit 5f15c81
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions pahfit/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5f15c81

Please sign in to comment.