Adjust limits for Guinier-Porod model.#667
Conversation
gonzalezma
left a comment
There was a problem hiding this comment.
All clear.
Perhaps remove unneeded parenthesis around exp(-ms) * (n*ms/rg**2)**ms?
The parenthesis are there to force python to evaluate the expression as |
|
Thanks. I missed that. |
|
I will be honest: I have very little experience of this model. But I note the text under Eq 4 in the Hammouda paper. If s were >3 then the 'dimensionality parameter' would be negative and that instinctively seems bad? I also note @mdoucet imposed an upper limit of 3 when he wrote the GP fit function for Mantid (https://github.com/mantidproject/mantid/blob/400d30c758e6bd9f5441c1e3e5287f6c9164785e/Framework/PythonInterface/plugins/functions/GuinierPorod.py). So on this basis I see no reason not to approve. |
smk78
left a comment
There was a problem hiding this comment.
Have not reviewed the code, but approve the limits imposed on parameter s.
Limit s to the range [0, 3].
Fix limiting values for I(q) when Rg or Porod exponent m go to zero. Add limiting value for s=3.