Peaks.PeakEditor#

Peaks.PeakEditor.py

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

class PeakEditor(parent, sd, pre_recog, corrected_sd, treat, rg_folder=None, exact_num_peaks=None, strict_sec_penalty=False)#

Bases: FullBatch, Dialog

Initialize a dialog.

Parameters:
  • window (parent -- a parent)

  • title (title -- the dialog)

apply()#

process the data

This method is called automatically to process the data, after the dialog is destroyed. By default, it does nothing.

body(body_frame)#

create dialog body.

return widget that should have initial focus. This method should be overridden, and is called by the __init__ method.

build_lower(lower_left, lower_right)#
build_panel(frame)#
buttonbox()#

add standard button box.

override if you do not want the standard buttons

cancel()#
clear_pframe()#
create_popup_menu(event)#
devel_test()#
draw_elements(uv_peaks, xr_peaks, uv_x, uv_y, xr_x, xr_y, baselines=None, draw_canvas=True)#
draw_scores(init_params=None, draw_rg_curve=True, create_new_optimizer=True)#
draw_title()#
get_drift_type()#
get_dsets()#
get_init_params()#
get_maxnum_trials()#
get_n_iterations()#
get_optimizer()#
get_param_init_type()#
get_ready_for_optimization()#
get_ready_for_scores_etc()#
get_seed()#
is_busy()#
on_figure_click(event)#
prepare_rg_curve(queue)#
re_construct_optimizer()#
redraw_scores()#
redraw_with_new_params(new_pps)#
save_rg_buffer()#
save_the_figure(file)#
show()#
show_bounds(debug=True)#
show_complementary_view(debug=False)#
show_cpd_decompose(debug=True)#
show_editcanvas(debug=True)#
show_params(debug=True)#
show_popup_menu(event)#
show_score_details(debug=True)#
start_rg_curve_thread()#
try_insert_user_peak(xr_x)#
update_button_states()#
update_status_bar(msg)#
user_cancel(ask=True)#
watch_rg_curve_thread()#
get_default_maxnum_trials(num_peaks)#