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

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

fit_settings

Tkinter.TopLevel derivative object for fitting parameters setting

Type:

FitSettings obj

paramsview

Tkinter.TopLevel derivative object for fitting models params displaying

Type:

ParamsView obj

statsview

Tkinter.TopLevel derivative object for fitting stats results displaying

Type:

StatsView obj

progressbar

Tkinter.TopLevel derivative object with progression bar

Type:

ProgressBar obj

range_min, range_max

Range associated to the spectrum support

Type:

Tkinter.StringVars

outliers_coef

Coefficient applied to the outliers limits

Type:

Tkinter.DoubleVar

baseline_mode

Method associated with the baseline determination method (‘Semi-Auto’, ‘Linear’ or ‘Polynomial’)

Type:

Tkinter.StringVar

baseline_coef

Smoothing coefficient used when calculating the baseline with the ‘Semi-Auto’ algorithm

Type:

Tkinter.IntVar

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

normalize

Activation keyword for spectrum profiles normalization

Type:

Tkinter.BooleanVar

normalize_range_min, normalize_range_max

Ranges for searching the maximum value used in the normalization

Type:

Tkinter.StringVars

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', force_terminal_exit=True)

Bases: GUI

Application for spectra fitting

root

Root window

Type:

Tkinter.Tk object

force_terminal_exit

Key to force terminal session to exit after ‘root’ destroying

Type:

bool

on_closing()

To quit ‘properly’ the application

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

Launch the appli