Skip to content

[ESSSANS] docs: compute reference curve instead of reading it from file - #694

Open
jokasimr wants to merge 3 commits into
mainfrom
compute-polygauss
Open

[ESSSANS] docs: compute reference curve instead of reading it from file#694
jokasimr wants to merge 3 commits into
mainfrom
compute-polygauss

Conversation

@jokasimr

@jokasimr jokasimr commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #679

I saw that Judith would provide code for this, but I thought it was a bit fun to let codex have a stab at it.

Max absolute difference between curve in file and computed curve is about 1e-8, with max relative difference being about 2e-10.

@github-actions github-actions Bot added the esssans Issues for esssans. label Aug 6, 2026
@github-actions github-actions Bot changed the title docs: compute reference curve instead of reading it from file [ESSSANS] docs: compute reference curve instead of reading it from file Aug 6, 2026
Comment on lines +172 to +174
The model is the SasView ``poly_gauss_coil`` model with an intensity at zero
Q of 50, a radius of gyration of 60 angstrom, a polydispersity of 1.02, and
a background of 0.2.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the function would be more useful if all the parameters would be values we can tune?
You can still give them the default values you list here, but it would make it useful in case we want a new intensity at Q=0, different Q range, etc..

@SimonHeybrock SimonHeybrock Aug 7, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the goal of the issue was to make the computation part of a production code (not just a tutorial helper function), i.e., a graph node computing the model. I don't know if the params should all be workflow params, check with Judidth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

esssans Issues for esssans.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ESSSANS] Add code for computing PolyGauss instead of using a file

3 participants