Skip to content

chore(device): add deprecation decorator and mark methods for removal…#874

Draft
wakonig wants to merge 1 commit into
mainfrom
chore/deprecate_device_properties
Draft

chore(device): add deprecation decorator and mark methods for removal…#874
wakonig wants to merge 1 commit into
mainfrom
chore/deprecate_device_properties

Conversation

@wakonig
Copy link
Copy Markdown
Member

@wakonig wakonig commented May 6, 2026

Description

This PR adds a dedicated decorator for marking methods as deprecated and uses the decorator for declaring certain ophyd device methods as deprecated. The following positioner methods are affected:

  • settle_time
  • timeout
  • move
  • position
  • moving

Related Issues

[Cite any related issues or feature requests that are addressed or resolved by this pull request. Link the associated issue, for example, with fixes #123 or closes #123.]

Type of Change

  • Change 1
  • Change 2

How to test

  • Run unit tests

Potential side effects

[Describe any potential side effects or risks of merging this PR.]

Screenshots / GIFs (if applicable)

[Include any relevant screenshots or GIFs to showcase the changes made.]

Additional Comments

[Add any additional comments or information that may be helpful for reviewers.]

Definition of Done

  • Documentation is up-to-date.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

❌ Patch coverage is 91.30435% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
bec_lib/bec_lib/utils/deprecation.py 88.23% 0 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

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.

1 participant