helgestein / helao-pub

hierachical automation of the natural sciences
MIT License
20 stars 5 forks source link

gamry_server.py: handle software stop action #7

Closed onepunchdan closed 3 years ago

johnmgregoire commented 3 years ago

this is the Gamry reaction to a software estop

onepunchdan commented 3 years ago

This action is expected to stop a measurement in progress, which means interrupting the "measure()" coroutine in gamry_driver.py. We need another coroutine method in the gamry class (in gamry_driver.py) that issues the GamryCOM API's abort method, then expose this method to an async endpoint e.g. "/estop" in gamry_server.py.