Skip to content

Adding ConfigSignal version of get_current_settings and retrieve_settings.#803

Merged
coretl merged 11 commits intomainfrom
store_config_settings
Mar 3, 2025
Merged

Adding ConfigSignal version of get_current_settings and retrieve_settings.#803
coretl merged 11 commits intomainfrom
store_config_settings

Conversation

@burkeds
Copy link
Collaborator

@burkeds burkeds commented Feb 28, 2025

Added config signal only plans to handle settings including get_current_config_settings and retrieve_config_settings. Not sure if I handled the tests correctly. I had to create a new test_data file for OneOfEverythingDevice.

Copy link
Collaborator

@coretl coretl left a comment

Choose a reason for hiding this comment

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

Rather than duplicate the plans, would it be better to add an only_config=False arg to each of the existing plans?

…and retrieve_settings to optionally only handle configuration signals instead of all SignalRWs.
@burkeds burkeds requested a review from coretl February 28, 2025 18:22
Copy link
Collaborator

@coretl coretl left a comment

Choose a reason for hiding this comment

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

Much neater, thanks!

@coretl coretl merged commit 6a0419b into main Mar 3, 2025
25 checks passed
@coretl coretl deleted the store_config_settings branch March 3, 2025 11:15
shihab-dls pushed a commit that referenced this pull request Mar 6, 2025
…ings. (#803)

* Variation of store_settings which only handles configuration attributes in StandardReadable devices

* Moved walk_config_signals to _readable

* defined config_names before loop

* walk_config_signals now checks for bluesky.protocols.Configurable so I moved it back to _signal.py. The test should work now.

* Ran ruff

* Clearing pre-commit,typechecking with tox

* Update src/ophyd_async/core/_signal.py

Co-authored-by: Tom C (DLS) <101418278+coretl@users.noreply.github.com>

* Reverted suggested change

* Added config signal only plans to handle settings including get_current_config_settings and retrieve_config_settings.

* Added only_config=False kwarg to store_config, get_current_settings, and retrieve_settings to optionally only handle configuration signals instead of all SignalRWs.

---------

Co-authored-by: Tom C (DLS) <101418278+coretl@users.noreply.github.com>
paula-mg pushed a commit that referenced this pull request Mar 26, 2025
…ings. (#803)

* Variation of store_settings which only handles configuration attributes in StandardReadable devices

* Moved walk_config_signals to _readable

* defined config_names before loop

* walk_config_signals now checks for bluesky.protocols.Configurable so I moved it back to _signal.py. The test should work now.

* Ran ruff

* Clearing pre-commit,typechecking with tox

* Update src/ophyd_async/core/_signal.py

Co-authored-by: Tom C (DLS) <101418278+coretl@users.noreply.github.com>

* Reverted suggested change

* Added config signal only plans to handle settings including get_current_config_settings and retrieve_config_settings.

* Added only_config=False kwarg to store_config, get_current_settings, and retrieve_settings to optionally only handle configuration signals instead of all SignalRWs.

---------

Co-authored-by: Tom C (DLS) <101418278+coretl@users.noreply.github.com>
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.

2 participants