AFL.automation.shared.DiffractionLabeler#

Functions

sqrt(x, /)

Return the square root of x.

Classes

DiffractionLabeler(saxs_data, ...)

DiffractionLabelerModel(saxs_data, ...)

DiffractionLabelerView()

OrdinalEncoder(*[, categories, dtype, ...])

Encode categorical features as an integer array.

class AFL.automation.shared.DiffractionLabeler.DiffractionLabeler(saxs_data, composition_data, possible_phase_labels)[source]#
__init__(saxs_data, composition_data, possible_phase_labels)[source]#
next_button_callback(click)[source]#
prev_button_callback(click)[source]#
goto_callback(click)[source]#
ternary_click_callback(figure, location, click)[source]#
update_plot()[source]#
draw_peaks(peaks)[source]#
change_qstar_callback(figure, location, click)[source]#
change_model_callback(data)[source]#
change_norder_callback(data)[source]#
label(label)[source]#
run()[source]#
class AFL.automation.shared.DiffractionLabeler.DiffractionLabelerModel(saxs_data, composition_data, possible_phase_labels)[source]#
__init__(saxs_data, composition_data, possible_phase_labels)[source]#
ordinal_phase_labels()[source]#
init_models()[source]#
get_peaks(model, qstar=None, max_order=4)[source]#
class AFL.automation.shared.DiffractionLabeler.DiffractionLabelerView[source]#
__init__()[source]#
update_plot(x, y, composition)[source]#
remove_vertical_lines()[source]#
add_vertical_line(x, y0=0, y1=128, row=1, col=1, line_kw=None)[source]#
update_ternary_colors(colors)[source]#
run(x, y, all_compositions, composition, models, possible_phase_labels)[source]#