fix: fix test related to last change
CI / lint (pull_request) Successful in 1m17s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m22s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m25s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m31s
CI / test-with-coverage (pull_request) Successful in 1m41s
CI / test (3.13) (pull_request) Successful in 1m45s
CI / test (3.12) (pull_request) Successful in 1m46s
CI / test (3.14) (pull_request) Successful in 1m47s
CI / coverage-analysis (pull_request) Failing after 4s
Docs build and publish / docker (push) Successful in 3s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 53s
CI / test (3.13) (push) Canceled after 56s
CI / test (3.12) (push) Canceled after 56s
CI / lint (push) Canceled after 56s
CI / test (3.14) (push) Canceled after 56s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 56s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 54s
CI / test-with-coverage (push) Canceled after 54s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 54s

This commit was merged in pull request #250.
This commit is contained in:
2026-10-02 11:42:54 +02:00
parent 4430585e3c
commit 2cccc8a345
+1 -1
View File
@@ -44,7 +44,7 @@ def test_pxii_dispatch_can_be_instantiated():
def test_pxii_dispatch_beam_center():
with patch.dict("os.environ", {"BEAMLINE": "X10SA"}):
dispatch = get_beamline_dispatch()
beam_center = dispatch.geo.beam_centre_model.predict(300, 62)
beam_center = dispatch.geo.beam_centre_model.predict(300, 0)
assert np.isclose(beam_center[0][0], 2081.8, atol=1)
assert np.isclose(beam_center[1][0], 2242.05, atol=1)