Open Jdaviz-Triage-Bot opened 1 year ago
Tracked down the root cause: model fitting applies the subset mask from #1834 by using spectral_subset.selected_subset_mask
, which in turn relies on app.get_data_from_viewer('spectrum-viewer', subset)
, which suffers from #1843/#1921 meaning the returned mask does not not necessarily correspond to the selected data set. After calling calculate_fit
and adding those results to the viewer, successive calls to retrieve the mask are getting the mask on the new model data entry which is therefore correct.
On top of that, the initializers to estimate model component parameters are not listening to the input subset (have a WIP fix for this). This isn't critical and isn't the root cause of the bug seen here, but will help for faster convergence, etc.
Reporter: Kyle Conroy
To reproduce:
:cat:
DISCLAIMER: This issue was autocreated by the Jdaviz Issue Creation Bot on behalf of the reporter. If any information is incorrect, please contact Duy Nguyen