Skip to content

Fix displ_transl toggle in quick_fit_profile - #92

Open
vincefn wants to merge 1 commit into
mainfrom
vincefn-fix-issue-83
Open

Fix displ_transl toggle in quick_fit_profile#92
vincefn wants to merge 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.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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