Models.ModelUtils#

Models.ModelUtils.py

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

class PairedRangeProxy(range_list)#

Bases: object

get_fromto_list()#
compute_area_props(cy_list)#
compute_cy_list(model, x, params_array)#
compute_raw_moment1(x, y)#
compute_raw_moments1(x, y_list)#
data_dump(x, y, peaks, prefix='')#
get_paired_ranges_from_params_array(model, x, params_array, separate_ratio=None, ignoreable_ratio=0.03, return_indeces=False, want_num_components=None, select=None, debug=False)#
model_debug_plot(model, params, x_, y_, x, y, tau_hint, where_text, residual, before_params=None, print_callstack=False, work_y=None)#

remember to make friendly this kind of debugging tools

plot_component_curves(ax, x, y, params_list, baseline, affine=False, color='blue', add_moments=False)#