Optimizer.OptDataSets#
Optimizer.OptDataSets.py
Copyright (c) 2022-2025, SAXS Team, KEK-PF
- class OptDataSets(sd, corrected_sd, dsets=None, rg_folder=None, E=None, progress_cb=None, compute_rg=False, possibly_relocated=True, current_folder=None)#
Bases:
object- apply_x_shifts(x_shifts)#
Apply the given x_shifts to the datasets.
- Parameters:
x_shifts (array-like of two elements [xr_shift, uv_shift])
- Return type:
None
- compute_weight_info(W)#
- get_opt_weight_info()#
- get_x_shifts()#
Get the x_shifts needed to align the datasets.
The returned value (x_shifts) can be used as the argument of MplMonitor.run_optimizer() and eventually passed to dsets.apply_x_shifts() in the subprocess through “x_shifts.txt” text file.
x_shifts is needed only when the dests has been created in Molass Library, meaning that the need arose from the difference with Molass Legacy and Molass Library in handling the trimming of the xr-curve and uv-curve.
- Parameters:
None
- Return type:
array-like of two elements [xr_shift, uv_shift]
- relocate_rg_folder()#
- get_current_rg_folder(compute_rg=False, possibly_relocated=True, current_folder=None)#
arguments will be used as follows.
process compute_rg possibly_relocated current_folder#
PeakEditor. True False None OptimizerUtils False False None FullOptDialog
(recompute rg-curve) True True specified
ResultFolderSelector False True specified OptimizerMain False True None (getcwd())
- get_dsets_impl(sd, corrected_sd, progress_cb=None, rg_folder=None, rg_info=True, logger=None, compute_rg=False, possibly_relocated=True, current_folder=None, return_e_override=False)#