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
- Changed how user functions for interacting with framework and state machine are made availible in task file. Previously they were monkey-patched into the user task definition file when the State_machine was instantiated. This was not ideal as: 1) It could cause a patched-in function to overwrite user function or variables in the event of a name collision, causing hard to diagnose errors. 2) It prevented the user from importing these functions using a named import if they wish to, e.g. to ensure task code passes linting. 3) It made the framework code harder to understand. This commit moves all pyControl functions that are used in task files to the pyControl.utility module, so they can be imported into the task definition file using standard python imports.
0 commit comments