ACID_code_v2.Config
- class ACID_code_v2.Config(**kwargs)[source]
A simple class to store the configuration of the ACID run.
- defaults = {'bin_size': 100, 'check_interval': 1000, 'continuum_percentile': 90, 'cores': None, 'deterministic_profile': True, 'dev_perc': 25, 'hydrogen_lines': {'lines': [3835.38, 3889.05, 4101.74, 4340.47, 4861.34, 6562.81], 'widths': None}, 'hydrogen_width': 1000, 'max_steps': None, 'min_checks': 1, 'min_tau_factor': 50, 'moves': [('StretchMove', 0.2, {}), ('DESnookerMove', 0.1, {}), ('DEMove', 0.6, {}), ('DEMove', 0.1, {'gamma0': 1.0})], 'n_sig': 1, 'nsteps': 10000, 'order': 0, 'order_range': [0], 'parallel': True, 'pix_chunk': 20, 'poly_ord': 3, 'run_mcmc': True, 'seed': None, 'skips': 1, 'tau_tol': 0.05, 'telluric_lines': {'lines': [3820.33, 3933.66, 3968.47, 4307.9, 4327.74, 4383.55, 5183.62, 5270.39, 5889.95, 5895.92, 7593.7, 8226.96], 'widths': None}, 'telluric_width': 21, 'verbose': 2}
- property verbose: ACID_code_v2.utils.IntLike
- property telluric_lines: MaskingLines
- property hydrogen_lines: MaskingLines
- plot_masking_lines(line_type: str = 'all', return_fig: bool = False) None | tuple[source]
Plots the telluric and/or hydrogen lines that will be masked in the residual masking step, with shaded regions indicating the widths of the masks.
- Parameters:
line_type (str, optional) – The type of lines to plot, by default “all”. Must be one of “telluric”, “hydrogen”, or “all”.
return_fig (bool, optional) – Whether to return the figure and axis objects instead of showing the plot, by default False.
- Returns:
If return_fig is True, returns a tuple of (fig, ax) where fig is the matplotlib figure object and ax is the axis object.
Otherwise, returns None and shows the plot.