Opened 8 years ago

Closed 8 years ago

#742 closed defect (fixed)

after copy & paste parameters, "please select parameters to fit"

Reported by: richardh Owned by: piotr
Priority: major Milestone: SasView 4.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description

after copy & paste parameters, "please select parameters to fit" appears when you hit fit, have to deselect and select fitting parameter check boxes.

Change History (5)

comment:1 Changed 8 years ago by richardh

  • Priority changed from minor to major

comment:2 Changed 8 years ago by richardh

After any modifications to a model (e.g. add or remove an S(Q)) the selected "fit" check boxes are ignored?

comment:3 Changed 8 years ago by butler

a bit more sleuthing and seems that for parameters that are copied the state of the checkbox is also copied but is not passed to the model so that the model always thinks it is unchecked. If the parameter is not copied its state is not changed so if checked will be properly seen as checked.

Then there is the problem that if a model is selected with some parameters checked and a new model (either a new one or as a pq*sq any checked parameters are not recognized by the model and pressing fit throws up a "you must select parameters to fit" error. This is probably a result of the change that all parameters are unchecked by default when choosing a new model.

comment:4 Changed 8 years ago by piotr

  • Owner set to piotr
  • Status changed from new to accepted

It looks like wx doesn't update the model on view change and requires refreshing. Should be pretty easy to fix.

comment:5 Changed 8 years ago by Piotr Rozyczko <rozyczko@…

  • Resolution set to fixed
  • Status changed from accepted to closed

In 01cfd1391bebcc4a55f6cae2c4aa7315ecb43404/sasview:

Update the model on view change in parameter paste. Fixed #742

Note: See TracTickets for help on using tickets.