You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refreshing the environment should refresh the cached plans #1503
>>>bc=BlueapiClient.from_config_file('tests/system_tests/config.yaml').with_instrument_session("cm12345-1")
>>>bc.plans.missingTraceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/dls/athena/blueapi/src/blueapi/client/client.py", line97, in__getattr__raiseAttributeError(f"No plan named '{name}' available")
AttributeError: Noplannamed'missing'available>>># Add a 'missing' plan to a module included in the server>>>bc.reload_environment()
EnvironmentResponse(environment_id=UUID('72aabe8e-1fdd-4f52-a23d-5717a2ccb725'), initialized=True, error_message=None)
>>>bc.plans.missingTraceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/dls/athena/blueapi/src/blueapi/client/client.py", line97, in__getattr__raiseAttributeError(f"No plan named '{name}' available")
AttributeError: Noplannamed'missing'available
After the reload, the cached plans should be refreshed to ensure new plans are available and removed plans don't linger.
Activity