Merged
Conversation
7952c1f to
6fbc0ab
Compare
Member
Author
|
Alright, I tested this change now by doing the following:
import ocs
from ocs.client_t import (
ProcessClient,
run_control_script,
TaskClient,
)
def my_client_function(app, *args, **kwargs):
root = 'observatory'
instance = 'fake-data1'
# Register addresses and operations
address = '{}.{}'.format(root, instance)
ops = {
'delay': TaskClient(app, address, 'delay_task'),
'acq': ProcessClient(app, address, 'acq')
}
yield ops['delay'].start()
yield ops['delay'].wait()
status = yield ops['delay'].status()
print(status)
run_control_script(my_client_function)Before and after the pending changes this worked without much issue: This is now ready for review. |
mhasself
approved these changes
May 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR removes the
site_config.reparse_args()function. There was still one lingering use inclient_t.run_control_script, so we remove that here as well.Motivation and Context
This has been deprecated since v0.6.0, back in March 2020. This is a part of some code clean up efforts.
How Has This Been Tested?
I still need to test this, specifically the
client_t.run_control_scriptchange. Draft until then, though comments welcome.Types of changes
Checklist: