SasView / sasview

Code for the SasView application.
BSD 3-Clause "New" or "Revised" License
49 stars 41 forks source link

Phi and theta stuck at zero in 2D theory calculations #3053

Open butlerpd opened 4 weeks ago

butlerpd commented 4 weeks ago

Describe the bug When plotting oriented 2D scattering patterns from theory models, setting either theta or phi to 0 at any point, disables that parameter. Any additional changes to those angles are not updated in the simulated data images. This makes it difficult to manually fit. It is not clear (and hard to test) if the same would happen if the fitting algorithm sets one of those values to zero which would be extremely problematic.

To Reproduce Steps to reproduce the behavior:

  1. create a theory model for any anisotropic shape (e.g. cylinder) and click the 2D box before plotting
  2. change angles theta and phi (and psi for prism models)
  3. Now set one to zero
  4. Try to move off of zero
  5. Pattern does not change from that at 0

Expected behavior the plot (and underlying theory data) should recalculate with the new angel and not use zero as being unchangeble.

SasView version (please complete the following information):

Operating system (please complete the following information):

Additional context Identified during the NIST CNR summer school and thus labelled 6.0.0 release as agreed - However, whether this is a longer standing issue has yet to checked

krzywon commented 3 weeks ago

This issue is present in v5.0.6. In order to prevent scope creep, this should not be fixed for v6.0.0.

davidnwobi commented 2 weeks ago

This also happens for other parameters besides the angle. I've seen the same behaviour with the parameters of the cylinder and ellipsoid models in the 1D case. It seems to be a more general issue with all the parameters; in this case: sld, sld_solvent, radius and solvent.