-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
ready for testingThis issue has been fixed and is ready for testingThis issue has been fixed and is ready for testing
Milestone
Description
With Simvue client 2.0.0a1 using this test code:
from simvue import Run
if __name__ == "__main__":
with Run() as run:
run.init(running=False)
run_id = run.id
time.sleep(10)
with Run() as run:
run.reconnect(run_id)
I get:
Traceback (most recent call last):
File "/home/alahiff/client/290250220/reconnet1.py", line 14, in <module>
run.reconnect(run_id)
File "/home/alahiff/client/290250220/venv/lib/python3.10/site-packages/simvue/utilities.py", line 245, in wrapper
return class_func(self, *args, **kwargs)
File "/home/alahiff/client/290250220/venv/lib/python3.10/site-packages/pydantic/_internal/_validate_call.py", line 38, in wrapper_function
return wrapper(*args, **kwargs)
File "/home/alahiff/client/290250220/venv/lib/python3.10/site-packages/pydantic/_internal/_validate_call.py", line 111, in __call__
res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
File "/home/alahiff/client/290250220/venv/lib/python3.10/site-packages/simvue/run.py", line 935, in reconnect
self._start(reconnect=True)
File "/home/alahiff/client/290250220/venv/lib/python3.10/site-packages/simvue/run.py", line 471, in _start
self._sv_obj.status = self._status
File "/home/alahiff/client/290250220/venv/lib/python3.10/site-packages/simvue/api/objects/base.py", line 67, in _wrapper
raise AssertionError(
AssertionError: Cannot set property 'status' on read-only object of type 'run'
Metadata
Metadata
Assignees
Labels
ready for testingThis issue has been fixed and is ready for testingThis issue has been fixed and is ready for testing