Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Polydispersity settings not updating correctly #2438

Open
lucas-wilkins opened this issue Feb 15, 2023 · 3 comments
Open

Polydispersity settings not updating correctly #2438

lucas-wilkins opened this issue Feb 15, 2023 · 3 comments
Assignees
Labels
Defect Bug or undesirable behaviour Fitting Perspective Concerns the fitting perspective
Milestone

Comments

@lucas-wilkins
Copy link
Contributor

Describe the bug
Changing polydispersity parameters

To Reproduce
Make a P*S model,
Switch between polydispersity settings and change values
Things do not update consistently
Not diagnosed fully yet, seems to be intermittent at this point

@lucas-wilkins lucas-wilkins added Defect Bug or undesirable behaviour Fitting Perspective Concerns the fitting perspective labels Feb 15, 2023
@lucas-wilkins lucas-wilkins self-assigned this Mar 16, 2023
@smk78 smk78 added this to the SasView 6.0.0 milestone Mar 27, 2024
@smk78
Copy link
Contributor

smk78 commented Mar 27, 2024

Testing a recent 6.0.0a1 Github actions build on W10/x64.

Indeed, something bad has happened with Polydispersity!

image

The function drop down is now appearing under Filename. The Filename box should only activate when an Array distribution is selected so that you can input your user-defined distribution.

Polydispersity still seems to function - and that is the only reason I'm not going to label this as a blocker for 6.0.0 - but I consider it highly undesireable that you can select a distribution other than a Gaussian and the GUI still says Gaussian.

This needs a prompt fix.

@smk78
Copy link
Contributor

smk78 commented Mar 27, 2024

Changing function the following are thrown:

ERROR: Traceback (most recent call last): File "sas\qtgui\Perspectives\Fitting\FittingWidget.py", line 3526, in File "sas\qtgui\Perspectives\Fitting\FittingWidget.py", line 3580, in onPolyComboIndexChange AttributeError: 'NoneType' object has no attribute 'blockSignals'
2024-03-27 15:20:22,929 : ERROR : sas.qtgui.Perspectives.Fitting.FittingWidget (FittingWidget.py:177) :: Traceback (most recent call last):
  File "sas\qtgui\Perspectives\Fitting\FittingWidget.py", line 3526, in <lambda>
  File "sas\qtgui\Perspectives\Fitting\FittingWidget.py", line 3580, in onPolyComboIndexChange
AttributeError: 'NoneType' object has no attribute 'blockSignals'

@krzywon
Copy link
Contributor

krzywon commented Apr 15, 2024

The function drop down is now appearing under Filename. The Filename box should only activate when an Array distribution is selected so that you can input your user-defined distribution.

Polydispersity still seems to function - and that is the only reason I'm not going to label this as a blocker for 6.0.0 - but I consider it highly undesireable that you can select a distribution other than a Gaussian and

I can reliably recreate the issue seen by @smk78, not only in v6.0.0a, but also v5.0.6.

Steps to repeat:

  1. Load a data set and send it to fitting.
  2. Select a model, and PD, but do not select a structure factor.
  3. Select at PD parameter for fitting (important part).
  4. Run the fit.
  5. Select a new model -or- select a structure factor. The new model must have the parameter that was fit for PD in the original model.
  6. The PD function now appears in the filename column.

There appear to be two signals created when the model changes, one related to polydispersity, and another related to the model. The model thread resets a flag saying there is error in the polydispersity value, and then deletes the error column in the PD tab. The PD thread reads the param table and uses the number of values in the list to determine if error exists, shifting the filename box into the filename column. Why the other columns aren't shifted, I can't be sure yet.

Note - more debugging and a fix are still needed, but I think this has been around for a while.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Defect Bug or undesirable behaviour Fitting Perspective Concerns the fitting perspective
Projects
None yet
Development

No branches or pull requests

4 participants