Skip to content

Don't include magnetism parameters in pure python models#734

Open
pkienzle wants to merge 1 commit into
masterfrom
ticket-732-magnetism-error
Open

Don't include magnetism parameters in pure python models#734
pkienzle wants to merge 1 commit into
masterfrom
ticket-732-magnetism-error

Conversation

@pkienzle
Copy link
Copy Markdown
Contributor

Fixes sasmodels portion of #732

The full fix requires a change to sasview as well.

An alternative solution is to remove the "sld" type from the sld parameters in the pure python models, and update modelinfo.parse_parameter so that it doesn't infer it from the name. This can be done without changing the existing sasview code.

@pkienzle pkienzle requested a review from sara-mokhtari May 22, 2026 14:43
@sara-mokhtari
Copy link
Copy Markdown
Contributor

I ran the pure python models with the GUI, it is now possible to compute their 1D curves and it seems to be working fine, thank you @pkienzle. Here's an example of curves of an octahedron with no truncation and a tetrahedron with truncation = 0.5 obtained via the GUI.
comparaison-models-octa-tetra

2D plots are loaded but as we know orientational averaging is not yet supported for Python models (#695). We would be happy to work on this whenever it fits your schedule.

I also opened PR #735 for a documentation fix. If everything looks good, I suggest merging this PR first, updating #735 accordingly, and then merging it as well.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants