Skip to content

v5 errors when using S(Q) with a multiplicity model such as onion #1816

@RichardHeenan

Description

@RichardHeenan

after adding an S(Q) to say onion, when I change the number of shells I get:

  • ERROR: Traceback (most recent call last):
    File "C:\sasview5\sasview\src\sas\qtgui\Perspectives\Fitting\FittingWidget.py", line 2625, in onMainParamsChange
    self.kernel_module.setParam(parameter_name, value)
    File "C:\sasview5\sasmodels\sasmodels\sasview_model.py", line 513, in setParam
    raise ValueError("Model does not contain parameter %s" % name)
    ValueError: Model does not contain parameter n_shells

I suspect that once S(Q) is included the F(Q) is then also not being computed correctly, as the effective radius in S(Q) is wrong, only including the first shell, so suspect n_shells is being passed as zero.

[also can someone please add a new milestone, for 5.0.5 ? ]

Metadata

Metadata

Labels

CriticalHigh priorityMultiplicityIssue related to handling of multiplicity

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions