fix: Standard DTY offset is 0 mm now
CI / lint (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / lint (pull_request) Successful in 1m5s
CI / test (3.12) (pull_request) Successful in 1m34s
CI / test (3.13) (pull_request) Successful in 1m32s
CI / test (3.14) (pull_request) Successful in 1m35s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m37s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m32s
CI / test-with-coverage (pull_request) Successful in 1m44s
CI / coverage-analysis (pull_request) Failing after 2s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Failing after 1m10s
CI / lint (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / lint (pull_request) Successful in 1m5s
CI / test (3.12) (pull_request) Successful in 1m34s
CI / test (3.13) (pull_request) Successful in 1m32s
CI / test (3.14) (pull_request) Successful in 1m35s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m37s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m32s
CI / test-with-coverage (pull_request) Successful in 1m44s
CI / coverage-analysis (pull_request) Failing after 2s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Failing after 1m10s
This commit is contained in:
@@ -87,9 +87,7 @@ 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
|
||||
y_offset_px = (det_y_mm * 1000.0) / 75
|
||||
return (
|
||||
np.asarray([self._x_fit[1] + self._x_fit[0] * det_z_mm]),
|
||||
# positive offset means detector height increased -> beam lower on image -> higher pixel number
|
||||
|
||||
Reference in New Issue
Block a user