Closed pkienzle closed 4 months ago
There seems to be a lot of duplicated code in category management. Best to create a set of functions (in sas.system, in sas.sascalc.fitting or in sasmodels) so that categories are handled consistently.
I think most if not all of these have now been fixed in PR#2649 above with the exception of the RPA comment. However the current behavior is correct and should not be removed from sasmodels. the model is correct. Only qtgui does not know how to handle it so that it will give completely bogus results ... when it even works, when called from the gui rather than the CLI.
Describe the bug
The category manager panel allows a category to be repeated multiple times which causes the model to appear multiple times in the model dropdown on the fitting page.
The model enable/disable flags do not seem to be maintained when editing categories. Somehow I managed to get one to appear as false in the saved categories.json but I don't know how to reproduce it.
Model enable/disable flags are ignored for the model dropdown on the fitting page.
Model enable/disable flags will likely reset when a new model is added to the standard set (guessing from looking at the code).
The GUI is deleting rpa from every category when building the model dropdown options. It would be better to honour the enable/disable flag and default it to disabled. Or remove it from sasmodels if it is not considered production quality.
To Reproduce Steps to reproduce the behavior:
SasView version (please complete the following information):
Operating system (please complete the following information):