bec-ipython-client 3.149.0__tar.gz → 3.150.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/PKG-INFO +1 -1
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/pyproject.toml +1 -1
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_scans_lib_e2e.py +0 -27
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/.gitignore +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/__init__.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/beamline_mixin.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/bec_magics.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/bec_startup.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/__init__.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/device_progress.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/ipython_live_updates.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/live_table.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/move_device.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/utils.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/high_level_interfaces/__init__.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/high_level_interfaces/bec_hli.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/high_level_interfaces/spec_hli.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/main.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/SLS/__init__.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/SLS/sls_info.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/XTreme/__init__.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/XTreme/x-treme.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/__init__.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/flomni/flomni_config.yaml +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/prettytable.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/progressbar.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/signals.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/demo.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/conftest.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_beamline_mixins.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_bec_client.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_device_progress.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_ipython_live_updates.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_live_table.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_move_callback.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_pretty_table.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_signals.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/conftest.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/_ensure_requirements_container.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_actors_e2e.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_procedures_e2e.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_scans_e2e.py +0 -0
- {bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_scans_v4_lib_e2e.py +0 -0
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_scans_lib_e2e.py
RENAMED
|
@@ -555,33 +555,6 @@ def test_interactive_scan(bec_client_lib):
|
|
|
555
555
|
assert len(report.scan.live_data.samx.samx.val) == 10
|
|
556
556
|
|
|
557
557
|
|
|
558
|
-
def test_image_analysis(bec_client_lib):
|
|
559
|
-
bec = bec_client_lib
|
|
560
|
-
bec.metadata.update({"unit_test": "test_image_analysis"})
|
|
561
|
-
dev = bec.device_manager.devices
|
|
562
|
-
scans = bec.scans
|
|
563
|
-
dev.eiger.sim.select_model("gaussian")
|
|
564
|
-
dev.eiger.sim.params = {
|
|
565
|
-
"amplitude": 100,
|
|
566
|
-
"center_offset": np.array([0, 0]),
|
|
567
|
-
"covariance": np.array([[1, 0], [0, 1]]),
|
|
568
|
-
"noise": "uniform",
|
|
569
|
-
"noise_multiplier": 10,
|
|
570
|
-
"hot_pixel_coords": np.array([[24, 24], [50, 20], [4, 40]]),
|
|
571
|
-
"hot_pixel_types": ["fluctuating", "constant", "fluctuating"],
|
|
572
|
-
"hot_pixel_values": np.array([1000.0, 10000.0, 1000.0]),
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
res = scans.line_scan(dev.samx, -5, 5, steps=10, relative=False, exp_time=0)
|
|
576
|
-
res.wait(num_points=True, file_written=True)
|
|
577
|
-
fit_res = bec.dap.image_analysis.run(res.scan.scan_id, "eiger")
|
|
578
|
-
assert (fit_res[1]["stats"]["max"] == 10000.0).all()
|
|
579
|
-
assert (fit_res[1]["stats"]["min"] == 0.0).all()
|
|
580
|
-
assert (np.isclose(fit_res[1]["stats"]["mean"], 3.3, atol=0.5)).all()
|
|
581
|
-
# Center of mass is not in the middle due to hot (fluctuating) pixels
|
|
582
|
-
assert (np.isclose(fit_res[1]["stats"]["center_of_mass"], [49.5, 40.8], atol=2)).all()
|
|
583
|
-
|
|
584
|
-
|
|
585
558
|
@pytest.mark.timeout(100)
|
|
586
559
|
def test_bl_state(bec_client_lib):
|
|
587
560
|
bec = bec_client_lib
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/beamline_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/live_table.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/callbacks/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/SLS/__init__.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/SLS/sls_info.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/bec_ipython_client/plugins/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_beamline_mixins.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_bec_client.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_device_progress.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_live_table.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_move_callback.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_pretty_table.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/client_tests/test_signals.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_actors_e2e.py
RENAMED
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_procedures_e2e.py
RENAMED
|
File without changes
|
|
File without changes
|
{bec_ipython_client-3.149.0 → bec_ipython_client-3.150.1}/tests/end-2-end/test_scans_v4_lib_e2e.py
RENAMED
|
File without changes
|