RangeEditors.DecompEditorFrame#

DecompEditorFrame.py

Copyright (c) 2018-2025, SAXS Team, KEK-PF

class DecompEditorFrame(parent, dialog, sd, mapper, corbase_info, model, decomp_result=None, global_flag=False)#

Bases: SuperEditorFrame

Construct a frame widget with the parent MASTER.

Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

add_range_patchs(ax, range_parts, k=None)#
add_widgets()#
apply()#
compute_global_fitting()#
compute_jsd()#
create_popup_menu()#
debug_plot()#
draw1(debug=False)#
draw2(peak_no=None, debug=False)#
get_decomp_score()#
get_extrapolation_solver()#

always construct a new solver to initialize simply

get_figsize()#
get_fit_error()#
get_param_hints_dict()#
is_delayed()#
log_info_for_reset(modification='last applied')#
make_range_info(concentration_datatype=2, debug=False)#

called at PreviewButtonFrame.get_preview_data()

make_restorable_ranges()#
on_mpl_button_press(event)#
recompute_decomposition(decomp_result=None, redraw=True, debug=False)#
refresh_figs(devel=False)#
refresh_frame(elution_fig_type=None)#
refresh_spec_panels(restore=False, hints_dict=None)#
reset()#
reset_to_defaults()#
save_the_curves()#
set_data_label()#
set_toggle_text()#
toggle_params_constraints()#
toggle_show()#
update1()#
update1_impl(range_parts)#
update2(peak_no)#
update_error_label()#
update_figs(peak_no)#
update_range(pno, ad, f, t)#
update_with_result(decomp_result, debug=False)#
write_residual_amount_to_testerlog(y, resid_y)#
class ModelDecompInfo(decomp_ret)#

Bases: object

format_coord(x, y)#