Skip to content
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

Update model editor (rebase) #3135

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft

Update model editor (rebase) #3135

wants to merge 39 commits into from

Conversation

krzywon
Copy link
Contributor

@krzywon krzywon commented Oct 25, 2024

Description

This is a rebase of the branch in #2918, from release_6.0.0 to main, using interactive mode to eliminate the extra merge commit from a separate branch. This should be a parallel PR at this point, but will require some checking. The changes and checklists can all be seen in the original PR.

tsole0 added 30 commits October 25, 2024 11:38
The code changes in `PluginDefinition.py` add two new checkboxes for generating Python and C code in the UI. These checkboxes allow the user to specify whether they want to generate Python or C code when working with the plugin.
…ing C model template, connect so that it writes template to .c file and formats with user-input parameters
…re specified by separating pd-dependent funcs into C_PD_TEMPLATE and only including it if pd params exist
…lugin editor changes

bug fix: ensure that both a syntax check and a model check is run on model file before approving it; condense into checkModel method
…with C code. Clear highlights from both python and C windows if checks pass. Ensure that checkModel() is always passed a path argument instead of raw text.
… by removing os.remove(). allow user to load .c models into editor even if .c file fails model checks
… bad model check via QMessageBox prompt. This ensures no bad models are written to files without user agreement. Define full_path outside of python-specific code so that we can access it in C-specific code
… C model because no model checks can be run without a python wrapper. add showNoCompileWarning so user can override dialog after first showing
…Tab(). Initialize c_editor_widget in addWidgets(), only add editor widgets if needed, do not add widgets if one of same type already exists.
@krzywon krzywon mentioned this pull request Oct 25, 2024
7 tasks
@wpotrzebowski
Copy link
Contributor

Started testing functionality on Mac and getting error when clicking on Apply

21:33:47 - ERROR: Traceback (most recent call last): File "sas/qtgui/Utilities/TabbedModelEditor.py", line 269, in onApply File "sas/qtgui/Utilities/TabbedModelEditor.py", line 366, in updateFromPlugin File "sas/qtgui/Utilities/TabbedModelEditor.py", line 668, in canWriteModel AttributeError: 'TabbedModelEditor' object has no attribute 'builtinmodels'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants