3.11. Image fittingΒΆ

Users can fit multiple 2D Gaussian components to the selected file with the image fitting widget. Frontend sends FITTING_REQUEST with file_id, region_id, initial_values, and other settings. Backend fits the current channel and polarization of the file. For each fitting iteration, backend sends back FITTING_PROGRESS to update the progress. When the fitting is complete, backend responds with FITTING_RESPONSE. Users can cancel the requested fitting with the progress widget. Frontend sends STOP_FITTING, and backend sents back FITTING_RESPONSE after the fitting is canceled. The sequence diagram is shown below:

_images/2f076289ee79b75734ef394dd2aaaa8faccc6af3a1675739aa07a56ec03f3267.svg
loop

Backend -> Backend : One fitting iteration Frontend <– Backend : FITTING_PROGRESS

end

User -> Frontend : (Cancels the requested fitting) Frontend -> Backend : (STOP_FITTING) Frontend <– Backend : FITTING_RESPONSE deactivate Backend User <– Frontend : Displays fitting results deactivate Frontend