Skip to content

fix(positioner_box): fix STOP button#1182

Merged
wyzula-jan merged 1 commit into
mainfrom
fix/positioner-box-stopping-device
May 29, 2026
Merged

fix(positioner_box): fix STOP button#1182
wyzula-jan merged 1 commit into
mainfrom
fix/positioner-box-stopping-device

Conversation

@wyzula-jan
Copy link
Copy Markdown
Contributor

Description

Noticed that positioner box STOP button do not stop the movement of device, this PR fix it.

Copilot AI review requested due to automatic review settings May 29, 2026 15:25
@wyzula-jan wyzula-jan self-assigned this May 29, 2026
@wyzula-jan wyzula-jan force-pushed the fix/positioner-box-stopping-device branch from e6cc003 to 0a3fa82 Compare May 29, 2026 15:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the PositionerBox STOP button by routing stop requests to the dedicated immediate stop endpoint instead of queuing a device RPC.

Changes:

  • Replaces emergency queue RPC stop messages with VariableMessage sent to MessageEndpoints.stop_devices().
  • Updates 2D positioner stop behavior to stop both configured axes explicitly.
  • Adjusts unit tests to assert the new stop endpoint and payload.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
bec_widgets/widgets/control/device_control/positioner_box/positioner_box_base.py Sends stop requests through the dedicated stop-devices endpoint.
bec_widgets/widgets/control/device_control/positioner_box/positioner_box_2d/positioner_box_2d.py Stops both horizontal and vertical devices via the shared stop helper.
tests/unit_tests/test_positioner_box.py Updates single-positioner STOP test expectations.
tests/unit_tests/test_positioner_box_2d.py Adds coverage for 2D STOP behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wyzula-jan wyzula-jan force-pushed the fix/positioner-box-stopping-device branch from 0a3fa82 to 6f4a7f5 Compare May 29, 2026 15:30
@github-actions
Copy link
Copy Markdown
Contributor

Benchmark comparison

Threshold: 20% (lower is better).
Result: 0 regression(s), 0 improvement(s) beyond threshold.

No benchmark regression exceeded the configured threshold.

No benchmark improvement exceeded the configured threshold.

All benchmark results
Benchmark Baseline Current Change Status
BEC IPython client with companion app 5.91908 s 6.12423 s +3.47% ok
BEC IPython client without companion app 2.21378 s 2.06358 s -6.78% ok
Import bec_widgets 0.0143291 s 0.0136079 s -5.03% ok
tests/unit_tests/benchmarks/test_dock_area_benchmark.py::test_add_waveform_to_dock_area 0.151597 s 0.152188 s +0.39% ok

@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

❌ Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...vice_control/positioner_box/positioner_box_base.py 70.00% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@wyzula-jan wyzula-jan requested a review from a team May 29, 2026 16:16
Copy link
Copy Markdown
Member

@wakonig wakonig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@wyzula-jan wyzula-jan merged commit 9a58dba into main May 29, 2026
42 of 43 checks passed
@wyzula-jan wyzula-jan deleted the fix/positioner-box-stopping-device branch May 29, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants