-
Notifications
You must be signed in to change notification settings - Fork 43
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
Cannot use a plugin model created with a plugin model in 5.0.1 #1451
Comments
Also see #1452 |
Isn't that a know issue with not being able to set a three model sum? |
Darn! And it's not like I didn't try searching issues to see if this had been reported before! The extra information here, I guess, is that the problem also extends to plugins. Can we do something in the interim; try catch this happening and handle it more gracefully? |
I think sum/product are plugins right? More graceful handling is always better but am at a loss as to what that would look like? any ideas? |
The extra information here, I guess, is that the problem also extends to plugins. I accept this is going to be too big to fix for 5.0.1. So what to do... As things stand, the situation is that the only way you can reliably and correctly combine more than 2 models into a custom/plugin model is to edit the .py directly (the approach shown in the last code snippet in #1452). Trying to combine more than 2 models in 5.x by any other route simply doesn't work; trying to combine more than 2 models in 4.x by any other route actually mislabels and omits parameters and thereby produces faulty fits. We have to make our users aware of this defect. We can put some warnings in fitting_help (I volunteer to do that), but that does rely on the user reading it! :-) So can we actually do something in the Sum|Multi / Add/Multiply windows themselves (at least as a temporary measure until this problem is sorted)? Even just an 'Important: read this' link that pops up a brief explanation and then redirects to fitting_help? |
Made Add/Multiply dialog show only non-plugin (predefined) models. |
Agreed at call today to disable ability to create a sum model from plugins and add a warning label to GUI window for 5.0.1. Then move issue to 5.0.2. Also create a version of this against 4.2.3 milestone. |
As the ability to select plugins in Add/Multiply has now been disabled, I've changed the new warning text slightly. Now reads 'To add/multiply plugin models, or combine more than two models, please click Help below'. |
I have substantively modified fitting_help: in part a tidy-up of the Add/Multiply Models subsection (I spotted a big chunk of duplication, for example), and also to add something about the issues with combining plugin models and how to workaround it we discussed yesterday. I have committed direct to ESS_GUI. |
In the process I noticed that the action on pressing the Help button in /qtgui/Utilities/AddMultEditor.py was pointing to the wrong subsection of fitting_help (between the 4.x docs and the 5.x docs the section label got changed) so I updated this too. However, when I build locally the #add-multiply-models is being ignored (as was the previous incorrect subsection identifier) and it takes you straight to the top of fitting_help. Anyone know how to fix this? |
Changes to fitting_help (with suitable mods) now also made to 4.x fitting_help |
@rozyczko comments: |
I believe that is also a problem with Wx and 4.x? see issue #1152 carried over from Trac. Is this the same issue? |
Yes, it is. Where we specify the target of a Help button as doc_page.html#anchor_in_doc the anchor is being ignored by the browser, even though the anchor appears on the end of the URL. Which tends to suggest this is not a Qt/Wx issue? |
as per today's conversation am moving this to a 5.0.3 milestone in preparation for a 5.0.2 release. Also am removing the blocker and changing to critical since
|
@rozyczko and @smk78 - looking through this thread, it seems naively to me that this could actually be a "good first issue." The fact that you can add many models together by editing the python code directly should mean that all that is needed is to alter the GUI code to be smarter about how it codes the addition? Or am I completely gaga? |
Maybe. It depends what the origin of the ModuleNotFoundError is. So this could go beyond just a GUI issue. |
Ok .. I guess my point was that if this can be made to work properly by editing the python file then a GUI fixe must by definition be possible (though maybe not the best answer depending on the origin). Question I guess is: Is it true that I can create a plugin model that incorporates another plugin by editing the python file? |
Yes. That is the workaround. We added as much to the docs and Known Issues! |
In that case I'm going to call it a good first issue to implement that work around in the GUI. Partly on the grounds that it may take a while for significant infrastructure changes to be made. |
As agreed at fortnightly SasView meeting, this needs to be resolved so that changes to models that have been made between 5.0.5 and the next release won't break 5.x projects! |
Testing 5.0.1 Build 321 on W10/x64
If you use Add/Multiply Models to create a plugin, and then use Add/Multiply Models again but trying to use the previous plugin as one of the selected models, a plugin model file is created but is not recognised by SasView.
To reproduce:
Log Explorer reports
Log Exploer reports
A correctly formatted plugin file yyyy.py is created in .sasview\plugin_models
but yyyy does not appear in the Plugin Manager or in the list of FitPage models.
The text was updated successfully, but these errors were encountered: