Skip to content

Add radiation polarization clock and recalc trigger - #79

Merged
vincefn merged 5 commits into
masterfrom
vincefn-polarization-clock-and-test
Jul 23, 2026
Merged

Add radiation polarization clock and recalc trigger#79
vincefn merged 5 commits into
masterfrom
vincefn-polarization-clock-and-test

Conversation

@vincefn

@vincefn vincefn commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a dedicated Radiation clock for linear polarization rate changes
  • update PolarizationCorr::CalcCorr() to invalidate/recompute from clocks
  • add a changelog entry

Related to pyobjcryst issue #38.

vincefn and others added 5 commits July 23, 2026 22:24
…ionCorr

- Add mClockLinearPolarRate to Radiation (header + all constructors)
- Click mClockLinearPolarRate in SetLinearPolarRate() and expose
  GetClockLinearPolarRate() accessor
- Update PolarizationCorr::CalcCorr() to use the new clock instead of
  the fragile floating-point mPolarAfactor comparison
- Wire mClockPowderPatternRadiation as a parent of mClockLinearPolarRate
  in PowderPattern::Init() so all component mClockMaster hierarchies are
  properly invalidated when the polarisation rate changes
- Add unit test TestPolarizationCorrLinearPolarRateTrigger that verifies
  changing the linear polarisation rate causes GetPowderPatternCalc to
  return a different result

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Related to pyobjcryst issue #38.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- remove linear polarization clock child from mClockPowderPatternRadiation
- wire PowderPatternDiffraction mClockMaster directly to
  Radiation::GetClockLinearPolarRate()
- remove old parent wiring when parent powder pattern is replaced

Related to pyobjcryst issue #38.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Revert PowderPattern.cpp updates added on this branch.

Related to pyobjcryst issue #38.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- remove polarizationcorr-polar-rate-trigger unit test and runner entry
- keep the PolarizationCorr clock-based invalidation change
- align changelog wording with implemented behavior

Related to pyobjcryst issue #38.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@vincefn
vincefn merged commit 3d87bee into master Jul 23, 2026
2 checks passed
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.

1 participant