# Path: alis/prepfit/specplot.py
# class SelectRegions(object):
# class props:
# class atomic:
#     def __init__(self, canvas, ax, spec, prop, atom, vel=500.0):
#     def draw_lines(self):
#     def draw_callback(self, event):
#     def get_ind_under_point(self, event):
#     def sort_lines(self, method="ion"):
#     def get_current_line(self):
#     def button_press_callback(self, event):
#     def button_release_callback(self, event):
#     def key_press_callback(self, event):
#     def next_element(self, pm, ion=False):
#     def next_spectrum(self):
#     def update_regions(self):
#     def update_waverange(self):
#     def write_data(self):
#     def __init__(self, dla):
#     def set_regions(arr):
#     def __init__(self, wmin=None, wmax=None):
#     def solar(self):
#     def load_lines(self, verbose=1):
# def in1d_tol(avec, bvec, tol):


import os
import sys
import numpy as np
import matplotlib
    import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from myobjects import dlas
from alis.prepfit import specplot
matplotlib.use('Qt5Agg')

if __name__ == '__main__':

    dla = dlas("object1")
    prop = specplot.props(dla)

    # Ignore lines outside of wavelength range
    wmin, wmax = np.min(prop._wave)/(1.0+prop._zabs), np.max(prop._wave)/(1.0+prop._zabs)

    # Load atomic data

# Path: alis/prepfit/specplot.py
# class SelectRegions(object):
# class props:
# class atomic:
#     def __init__(self, canvas, ax, spec, prop, atom, vel=500.0):
#     def draw_lines(self):
#     def draw_callback(self, event):
#     def get_ind_under_point(self, event):
#     def sort_lines(self, method="ion"):
#     def get_current_line(self):
#     def button_press_callback(self, event):
#     def button_release_callback(self, event):
#     def key_press_callback(self, event):
#     def next_element(self, pm, ion=False):
#     def next_spectrum(self):
#     def update_regions(self):
#     def update_waverange(self):
#     def write_data(self):
#     def __init__(self, dla):
#     def set_regions(arr):
#     def __init__(self, wmin=None, wmax=None):
#     def solar(self):
#     def load_lines(self, verbose=1):
# def in1d_tol(avec, bvec, tol):


# Path: examples/prepfit/select_fitting_regions.py
import os
import sys
import numpy as np
import matplotlib
    import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from myobjects import dlas
from alis.prepfit import specplot

matplotlib.use('Qt5Agg')

if __name__ == '__main__':

    dla = dlas("object1")
    prop = specplot.props(dla)

    # Ignore lines outside of wavelength range
    wmin, wmax = np.min(prop._wave)/(1.0+prop._zabs), np.max(prop._wave)/(1.0+prop._zabs)

    # Load atomic data

    atom = specplot.atomic(wmin=wmin, wmax=wmax)