Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Nov 14, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Let the user delete the loop method in an OpMode.

Removed code from opmode.py that calls the steps method.

In mrc_class_method_def.ts:
Renamed classSpecific and getClassSpecificForInit to superInitParameters and getSuperInitParameters.

In mrc_steps.ts:
Added constant STEPS_METHOD_NAME and changed the steps method name to _steps.

In python.ts:
Added constant PERIODIC_METHOD_NAME.

In extended_python_generator.ts:
Changed finish method to add the code for calling the steps method to the end of the loop method.
Renamed getClassSpecificForInit to getSuperInitParameters.

* Don't generated python code that checks whether _steps method exists.

* If the workspace doesn't have steps and doesn't overide the loop method, show a warning on the opmode details block.

* Fixed misspelling.

* Changed the value of the warning id so it doesn't seem like a string that needs to be translated.
@pull pull bot locked and limited conversation to collaborators Nov 14, 2025
@pull pull bot added the ⤵️ pull label Nov 14, 2025
@pull pull bot merged commit 3fe6f5c into alan412:main Nov 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant