Skip to content

Fix displ_transl toggle in quick_fit_profile - #92

Merged
vincefn merged 1 commit into
mainfrom
vincefn-fix-issue-83
Jul 31, 2026
Merged

Fix displ_transl toggle in quick_fit_profile#92
vincefn merged 1 commit into
mainfrom
vincefn-fix-issue-83

Conversation

@vincefn

@vincefn vincefn commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

What problem does this PR address?

Fixes #83. quick_fit_profile(displ_transl=True) incorrectly fixed 2ThetaDispl and 2ThetaTransp, so they were not refined.

This PR changes those flags to False so both parameters are actually refined when displ_transl=True. It also adds:

  • a regression test in tests/test_powderpattern.py
  • a news item in news/83.rst

What should the reviewer(s) do?

Check that the toggle logic in quick_fit_profile now matches the other refinement toggles and that the new test captures the regression.

@vincefn
vincefn merged commit 36196c5 into main Jul 31, 2026
5 checks passed
@sbillinge
sbillinge deleted the vincefn-fix-issue-83 branch July 31, 2026 13:49
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.

quick_fit_profile doesn't activate 2ThetaDispl & 2ThetaTransp

1 participant