dara.eflech_worker module#
- class EflechWorker[source]#
Bases:
objectFunctionality for running peak detection using BGMN’s eflech and teil executables.
- static generate_control_file(pattern_path, wavelength, instrument_name, *, wmin=None, wmax=None, possible_changes=None, epsilon=None, nthreads=None)[source]#
- Return type:
Path
- static get_background_breakpoints(ru, xy_content)[source]#
Get the background breakpoints from the teil output.
- Parameters:
ru (
int) – the degree of background, get from teil outputxy_content (
ndarray) – the xy of the pattern
- Return type:
list[dict[str,float]]- Returns:
the background breakpoints
- patch_control_file_after_teil(control_file_path, ru, xy_content)[source]#
Patch the control file after teil is run. If the divided pattern is still too large, we will divide it further to save the computation time.
- Parameters:
control_file_path (
Path) – the path to the control fileru (
int) – the degree of background, get from teil outputxy_content (
ndarray) – the xy of the pattern