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/9432cd2085ef01270d0f57bce36a7e3821d2d6b0698234dbbd16299d7f7eb9bb.svg