Skip to content

Fixing name for dispersity parameter for multishell modells#3779

Merged
krzywon merged 3 commits intomainfrom
fix_3741_dispersity_on_multishell_models
Dec 16, 2025
Merged

Fixing name for dispersity parameter for multishell modells#3779
krzywon merged 3 commits intomainfrom
fix_3741_dispersity_on_multishell_models

Conversation

@dehoni
Copy link
Copy Markdown
Contributor

@dehoni dehoni commented Nov 17, 2025

Description

onPolyComboIndexChange takes the parameter name as thickness[n] instead of the correct value, e.g. for shell 2 this should be thickness2, such that sasmodels can handle it. A fix needs to ensures to pass on an expanded parameter name like thickness2 to kernel_module.set_dispersion instead of the thickness[n] which triggered the ValueError.

Fixes #3741

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Review Checklist:

[if using the editor, use [x] in place of [ ] to check a box]

Documentation (check at least one)

  • There is nothing that needs documenting
  • Documentation changes are in this PR
  • There is an issue open for the documentation (link?)

Installers

  • There is a chance this will affect the installers, if so
    • Windows installer (GH artifact) has been tested (installed and worked)
    • MacOSX installer (GH artifact) has been tested (installed and worked)
    • Wheels installer (GH artifact) has been tested (installed and worked)

Licensing (untick if necessary)

  • The introduced changes comply with SasView license (BSD 3-Clause)

@butlerpd
Copy link
Copy Markdown
Member

butlerpd commented Dec 1, 2025

I have not had a chance to test this but my first question would be how this might affect saved experiment files using a multishell model?

Copy link
Copy Markdown
Contributor

@krzywon krzywon left a comment

Choose a reason for hiding this comment

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

In previous versions, attempting to modify the PD params for a shell value threw errors. This PR fixes that.

@krzywon krzywon merged commit 6c1f052 into main Dec 16, 2025
30 checks passed
@krzywon krzywon deleted the fix_3741_dispersity_on_multishell_models branch December 16, 2025 15:28
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.

Error for dispersity for multishell modells

3 participants