fix: add detector y offset for 10s
CI / lint (pull_request) Successful in 1m8s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m30s
CI / test (3.13) (pull_request) Successful in 1m34s
CI / test (3.14) (pull_request) Successful in 1m37s
CI / test (3.12) (pull_request) Successful in 1m38s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m39s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m41s
CI / test-with-coverage (pull_request) Successful in 1m49s
CI / coverage-analysis (pull_request) Failing after 2s
Docs build and publish / docker (push) Successful in 3s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 54s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 56s
CI / test-with-coverage (push) Canceled after 56s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 56s
CI / test (3.13) (push) Canceled after 59s
CI / test (3.12) (push) Canceled after 1m27s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 59s
CI / test (3.14) (push) Canceled after 59s
CI / lint (push) Canceled after 1m25s

This commit was merged in pull request #245.
This commit is contained in:
2026-09-29 15:38:06 +02:00
parent 2e43e52547
commit ee7c4cb946
@@ -87,9 +87,13 @@ class _1dModel(BeamCenterModel):
def predict(
self, det_z_mm: ArrayLike, det_y_mm: ArrayLike
) -> tuple[NDArray[np.float64], NDArray[np.float64]]:
y_offset_mm: float = det_y_mm - 62 # type: ignore
y_offset_um = y_offset_mm * 1000
y_offset_px = y_offset_um / 75
return (
np.asarray([self._x_fit[1] + self._x_fit[0] * det_z_mm]),
np.asarray([self._y_fit[1] + self._y_fit[0] * det_z_mm]),
# positive offset means detector height increased -> beam lower on image -> higher pixel number
np.asarray([(self._y_fit[1] + self._y_fit[0] * det_z_mm) + y_offset_px]),
)