Source code for desk.set_up.get_inputs

# Steve Goldman, Space Telescope Science Institute, sgoldman@stsci.edu
import numpy as np

[docs] class fitting_parameters(object): """Initializes fitting paramters.""" def __init__( self, file_names: list, source: str, distance: float, grid: str, n: int, model_wavelength_grid: np.ndarray, full_model_grid, full_outputs, min_wavelength: float, max_wavelength: float, save_model_spectrum: bool, testing: bool, ): """Initializes fitting paramters. Parameters ---------- file_names : array of strings Array of the locations of target files. e.g.) array(['desk/put_target_data_here/MSX_LMC_807.csv']) source : str input source string. e.g.) 'desk/put_target_data_here/' distance : float Distance to source in kpc. grid : str Name of model grid to be used. n : int Number of times to scale model grid between config.fitting.lum_min and config.fitting.lum_min. A value to alter the density of the grid. model_wavelength_grid : array A 1-D np.array of the wavelengths of the model grid. full_model_grid : astropy table 1-Column astropy table with arrays of model grid fluxes (wm-2) as rows. full_outputs : astropy table Model outputs as 2D astropy table. min_wavelength : float Minimum wavelength to fit (um). max_wavelength : float Maximum wavelength to fit (um). save_model_spectrum : bool Whether to use save_model function on fit results. testing : bool Flag for testing, used to limit size of model grid. Returns ------- class variable Class with all fitting parameters. """ # Initialize user-inputted data self.file_names = file_names self.source = source self.distance = distance self.grid = grid self.n = n self.model_wavelength_grid = model_wavelength_grid self.full_model_grid = full_model_grid self.full_outputs = full_outputs self.min_wavelength = min_wavelength self.max_wavelength = max_wavelength self.save_model_spectrum = save_model_spectrum self.testing = testing