0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 11:11:49 +02:00

fix: test e2e dap wait_for_fit

This commit is contained in:
2024-09-19 09:30:26 +02:00
parent e3b5e338bf
commit b2f7d3c5f3

View File

@ -183,6 +183,8 @@ def test_dap_rpc(rpc_server_figure, bec_client_lib, qtbot):
def wait_for_fit():
dap_curve = plt.get_curve("bpm4i-bpm4i-GaussianModel")
fit_params = dap_curve.dap_params
if fit_params is None:
return False
print(fit_params)
return np.isclose(fit_params["center"], 5, atol=0.5)