Extrapolation.PeakSetSelector#

PeakSetSelector.py

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

class KnownRec(rno, pno, k_info)#

Bases: object

class PeakSetSelector(paired_ranges, ecurve=None, debug=False)#

Bases: object

row_info_dict#

e.g. required_peakset_infos is constructed as follows for OA_Ald

[row] [peak0, n-th-in-the-selected, {peak0, peak1, …} ]

[0] [0, 0, {0}] # row [0] represents peak0 which is 0-th in {peak0} [1] [0, 0, {0, 1}] # row [1] represents peak0 which is 0-th in {peak0, peak1} [2] [1, 1, {0, 1}] # row [2] represents peak1 which is 1-th in {peak0, peak1} [3] [2, 0, {2}] # row [3] represents peak2 which is 0-th in {peak2} [4] [2, 0, {2}] # row [4] represents peak2 which is 0-th in {peak2}

note that numbers in the required_peakset_infos represent peaks not elements. (although in this case, “peaks” and “elements” are identical, there are cases where a single peak consists of more than one elements)

for a microfluidic paried range, it should be

[0] [0, 0, {0, 1}] [1] [1, 1, {0, 1}]

select_demo_ranges_for_gd(uv_y, opt_recs)#
select_peakset(row)#
update_known_peak_info_list(known_info_list)#
get_range_from_elm_recs(p, num, k, f, t, elm_recs, ecurve=None, debug=False)#