fitspy.app.gui module

GUI and Appli classes associated to the spectra fitting application

class fitspy.app.gui.GUI

Bases: Callbacks

Gui associated to the spectra fitting application

frame_map

Frame used to display the 2D-map field (integrated spectrum intensities)

Type:

Tkinter.TopLevel

ax_map, canvas_map

Axes and canvas related to the 2D-map figure displaying

Type:

Matplotlib.Axes, FigureCanvasTkAgg

figure_settings

Tkinter.TopLevel derivative object for figure parameters setting

Type:

FigureSettings obj

attractors_settings

Tkinter.TopLevel derivative object for attractors parameters setting

Type:

AttractorsSettings obj

fit_settings

Tkinter.TopLevel derivative object for fitting parameters setting

Type:

FitSettings obj

tabview

Tkinter.TopLevel derivative object for fitting results models displaying

Type:

TabView obj

progressbar

Tkinter.TopLevel derivative object with progression bar

Type:

ProgressBar obj

range_min, range_max

Range associated to the spectrum support

Type:

Tkinter.DoubleVars

normalize_mode

Type of normalization (‘Maximum’ or ‘Attractor’)

Type:

Tkinter.StringVar

attractor_position

Reference position in case of ‘Attractor’ normalize_mode

Type:

Tkinter.IntVar

attractors

Activation keyword for spectrum peaks association when adding

Type:

Tkinter.BooleanVar

baseline_attached

Activation keyword for baseline points attachment to the spectra

Type:

Tkinter.BooleanVar

baseline_sigma

Smoothing gaussian coefficient applied to the spectra when calculating the attached baseline points

Type:

Tkinter.IntVar

baseline_distance

Minimum distance used by ‘spectrum.auto_baseline’

Type:

Tkinter.DoubleVar

baseline_mode

Type of baseline (‘Linear’ or ‘Polynomial’)

Type:

Tkinter.StringVar

baseline_order_max

Max polynomial order to consider when plotting/removing the baseline

Type:

Tkinter.IntVar

model

Spectrum peak base model name among ‘Gaussian’, ‘Lorentzian’, ‘GaussianAsym’ and ‘LorentzianAsym’

Type:

Tkinter.StringVar

bkg_name

Background model name among ‘None’, ‘Constant’, ‘Linear’, ‘Parabolic’ and ‘Exponential’

Type:

Tkinter.StringVar

asym

Activation keyword to consider asymetric spectrum model

Type:

Tkinter.BooleanVar

ax

Current axis to work with

Type:

Matplotlib.Axes object

canvas

Current canvas to work with

Type:

FigureCanvasTkAgg object

fileselector

Widget dedicated to the files selection

Type:

common.core.appli_gui.FilesSelector object

frame_map_creation(spectra_map)

Create a frame_map Tkinter.Toplevel() and related ‘ax’ and ‘canvas’ as spectra_map attributes

save_settings()

Save GUI users settings

reload_settings()

Reload GUI users settings

class fitspy.app.gui.Appli(root, size='1550x950')

Bases: GUI

Application for spectra fitting

root

Root window

Type:

Tkinter.Tk object

on_closing()

To quit ‘properly’ the application

fitspy.app.gui.fitspy_launcher(fname_json=None)

Launch the appli