Skip to content

feat: expose Radiation.GetLinearPolarRate / SetLinearPolarRate and clock accessors - #93

Open
vincefn wants to merge 2 commits into
mainfrom
vincefn-expose-linear-polar-rate
Open

feat: expose Radiation.GetLinearPolarRate / SetLinearPolarRate and clock accessors#93
vincefn wants to merge 2 commits into
mainfrom
vincefn-expose-linear-polar-rate

Conversation

@vincefn

@vincefn vincefn commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

What problem does this PR address?

Issue #38 — the linear polarisation rate was not accessible from Python.

What was done

  • Bound Radiation.GetLinearPolarRate() and Radiation.SetLinearPolarRate() (already in current libobjcryst).
  • Bound Radiation.GetClockWavelength() and Radiation.GetClockRadiation() (were missing).
  • Bound Radiation.GetClockLinearPolarRate() behind a LIBOBJCRYST_VERSION >= 2026002000000LL guard — this requires vincefn/objcryst PR #79 to be picked up by a future libobjcryst release.
  • Added tests/test_radiation.py::testLinearPolarRate.

Dependency note

The polarisation-correction recalculation fix (so that changing the linear polar rate actually triggers a recalc) depends on vincefn/objcryst PR #79, which is merged upstream but not yet in a libobjcryst release. The new bindings work with the current libobjcryst; the full fix will be active once libobjcryst is updated.

Closes #38

vincefn and others added 2 commits July 28, 2026 13:40
…adiation

- Add Python bindings for Radiation::GetLinearPolarRate() and
  Radiation::SetLinearPolarRate() (available in current libobjcryst)
- Add GetClockWavelength() and GetClockRadiation() bindings (were missing)
- Add GetClockLinearPolarRate() guarded behind LIBOBJCRYST_VERSION >= 2026002000000LL
  (requires libobjcryst update with vincefn/objcryst PR #79)
- Add test_radiation.py::testLinearPolarRate

Closes #38

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

Add access to the linear polarisation rate

1 participant