Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Documentation error for lamellar_stack_paracrystal model #617

Open
jfmoulin opened this issue Nov 15, 2024 · 6 comments · May be fixed by #619
Open

Documentation error for lamellar_stack_paracrystal model #617

jfmoulin opened this issue Nov 15, 2024 · 6 comments · May be fixed by #619

Comments

@jfmoulin
Copy link

jfmoulin commented Nov 15, 2024

Describe the bug
Equation 4 of the doc page for the paracrystal lamellar model is incorrect:

S_N(q) = \frac{a_N}{N}[1 + w^2 - 2 w \cos(q \langle D \rangle)]^2

should instead read:

S_N(q) = \frac{a_N}{N [1 + w^2 - 2 w \cos(q \langle D \rangle)]^2}

The c code computing the model correctly implements the second form of the equation.

SasView version (please complete the following information):

  • Version: 6.0

Operating system (please complete the following information):

  • Linux
@smk78
Copy link
Contributor

smk78 commented Nov 25, 2024

Many thanks for bringing this to our attention.

@smk78
Copy link
Contributor

smk78 commented Nov 25, 2024

Does this need transferring to sasmodels?

@bmaranville
Copy link
Contributor

Seems to be the same wrong formula in 22 different places, in 3 different repos:

sasmodels repo:

sasfit-models repo:

docs repo:

@smk78
Copy link
Contributor

smk78 commented Nov 26, 2024

Thanks @bmaranville . I'm of the opinion we shouldn't retrospectively change the documentation for previous versions. I'm sure there are many of uncaught typos like this. But we should push a fix that will feed into the next point release of SasView.

@pkienzle
Copy link
Contributor

Does this need transferring to sasmodels?

Yes

@butlerpd butlerpd transferred this issue from SasView/sasview Dec 18, 2024
@olihammond olihammond linked a pull request Jan 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants