Skip to content

fix(bl_state): correct docstring examples#926

Merged
wyzula-jan merged 1 commit into
mainfrom
fix/bl-state-docstring
May 29, 2026
Merged

fix(bl_state): correct docstring examples#926
wyzula-jan merged 1 commit into
mainfrom
fix/bl-state-docstring

Conversation

@wyzula-jan
Copy link
Copy Markdown
Contributor

Description

Update of doctring examples.

@wyzula-jan wyzula-jan requested a review from a team May 29, 2026 12:58
@wyzula-jan wyzula-jan self-assigned this May 29, 2026
Copilot AI review requested due to automatic review settings May 29, 2026 12:58
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

Docstring-only update correcting the usage examples for ShutterState and DeviceWithinLimitsState in bl_states.py to reflect the actual public API (bec.beamline_states.add(<Config>)) instead of the old direct-instantiation/configure(...) pattern.

Changes:

  • Updated ShutterState docstring example to construct a DeviceStateConfig and pass it to bec.beamline_states.add(...).
  • Updated DeviceWithinLimitsState docstring example to construct a DeviceWithinLimitsStateConfig with the relevant fields and pass it to bec.beamline_states.add(...).

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

@wyzula-jan wyzula-jan enabled auto-merge (rebase) May 29, 2026 13:04
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

thx

@wyzula-jan wyzula-jan merged commit 75c2eab into main May 29, 2026
57 checks passed
@wyzula-jan wyzula-jan deleted the fix/bl-state-docstring branch May 29, 2026 14:53
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