-
Notifications
You must be signed in to change notification settings - Fork 28
Implement Macro feature for saving Python functions within Models #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…del integration Co-authored-by: fumitoh <8450892+fumitoh@users.noreply.github.com>
Co-authored-by: fumitoh <8450892+fumitoh@users.noreply.github.com>
…tion Co-authored-by: fumitoh <8450892+fumitoh@users.noreply.github.com>
Co-authored-by: fumitoh <8450892+fumitoh@users.noreply.github.com>
|
@copilot
|
- List defmacro in Creating objects section in functions.rst - Add Model.macros to Model properties in model.rst - Add Macro operations section with new_macro in model.rst - Create macro.rst documenting the Macro class - Add macro.rst to index.rst toctree Co-authored-by: fumitoh <8450892+fumitoh@users.noreply.github.com>
Documentation has been added in commit f1e7719: ✅ Listed All docstrings were already in place from the implementation, so the RST files now properly reference and document the Macro functionality. |
|
@copilot The |
- Remove name property from BaseParent in _mx_sys.py - Update all macro code and tests to use mx_model._name instead of mx_model.name - Update docstrings in api.py, macro.py, and model.py to use _name - All tests pass successfully Co-authored-by: fumitoh <8450892+fumitoh@users.noreply.github.com>
Changed in commit c600163: ✅ Removed All tests pass successfully. |
Implementation Plan for Macro Feature
Documentation Added
defmacroto Creating objects section in functions.rstModel.macrosto Model properties section in model.rstnew_macroin model.rstChanges Per Latest Feedback
nameproperty fromBaseParentin_mx_sys.pymx_model._nameinstead ofmx_model.name_name_nameSummary
Successfully implemented and documented the Macro feature for modelx with:
_nameattribute directly without property wrapperThe implementation is complete, tested, documented, and ready for use!
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.