GuinierAnalyzer.SimpleGuinier#

SimpleGuinier.py

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

class SimpleGuinier(file, curvature=False, basic_quality_only=False, anim_data=False, debug_plot=False)#

Bases: object

compute_backward_r_value(r_value, m, head_x, head_y)#
evaluate_basic_quality(debug=False)#
evaluate_interval(i, start, stop_a, qrg_limit, qrg_allow)#
find_better_peak(head_gap_ratio, start, head_x, head_y, debug=False)#

note that we can’t yet use self.basic_quality here because evaluate_basic_quality depends the peak info determined here

guinier_interval(qrg_limit=1.3)#

q*Rg < 1.3 log_y = log(G) - x**2 * Rg**2/3 slope = -Rg**2/3 Rg = sqrt(-3*slope)

make_cadidate_pairs(qrg_limit)#
make_low_quality_rec(debug=False)#
make_smooth_line(debug=False)#
set_guinier_null_result()#
set_guinier_result(candidate_rec)#
set_peak_info(m, smoother)#
try_better_peak(head_gap_ratio, m, m_try, knots, smoother, head_x, head_y, debug=False)#

we can adopt this peak if it substantially changes the spline

compute_monotonicity(y)#
rotate(th, wx, wy)#