From users at lists.sasview.org Wed Jul 1 07:18:48 2026 From: users at lists.sasview.org (Harrison Laurent via users) Date: Wed, 1 Jul 2026 11:18:48 +0000 Subject: [SasView Users] Model building in sasview Message-ID: Hello, I hope you are well. I am currently trying to build a reasonably complex model within sasview and have gone to the guide on how to manage this. I see in the documentation (SasView-6.1.3/sas/docs/user/qtgui/Perspectives/Fitting/fitting_help.html) that to achieve this one creates a 'simple' model combining two established models, then opens the model in the model editor. One can then add/multiply several different functions together by editing the text after 'load_model_info'. My question is how do I account for multiplying several summed models by a single other model, as brackets seemingly cannot be used. AKA how do I achieve the following sort of functions: (sphere + gaussian_peak + sphere)*user_defined_fractal_model ((sphere + gaussian_peak) + sphere)*user_defined_fractal_model ((sphere + sphere)*user_defined_fractal_model) + gaussian_peak Any insight you have would be extremely helpful. Thank you so much. All the best, Harrison Laurent -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Wed Jul 1 15:39:28 2026 From: users at lists.sasview.org (Paul Butler via users) Date: Wed, 1 Jul 2026 15:39:28 -0400 Subject: [SasView Users] Model building in sasview In-Reply-To: References: Message-ID: Hi Harrison, I cannot say that I've every tried that but note that the documentation does suggest (or at least imply) it is possible. So I tried and failed. I've forwarded your message to the developers mailing list. Hopefully somebody will know the answer? Cheers Paul On Wed, Jul 1, 2026 at 2:44 PM Harrison Laurent via users < users at lists.sasview.org> wrote: > Hello, > > I hope you are well. I am currently trying to build a reasonably complex > model within sasview and have gone to the guide on how to manage this. I > see in the documentation > (SasView-6.1.3/sas/docs/user/qtgui/Perspectives/Fitting/fitting_help.html) > that to achieve this one creates a 'simple' model combining two established > models, then opens the model in the model editor. One can then add/multiply > several different functions together by editing the text after > 'load_model_info'. > > My question is how do I account for multiplying several summed models by a > single other model, as brackets seemingly cannot be used. AKA how do I > achieve the following sort of functions: > > (sphere + gaussian_peak + sphere)*user_defined_fractal_model > > ((sphere + gaussian_peak) + sphere)*user_defined_fractal_model > > ((sphere + sphere)*user_defined_fractal_model) + gaussian_peak > > Any insight you have would be extremely helpful. Thank you so much. > > All the best, > > Harrison Laurent > > _______________________________________________ > users mailing list > users at lists.sasview.org > http://lists.sasview.org/cgi-bin/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Thu Jul 2 06:34:51 2026 From: users at lists.sasview.org (IMPEROR Marianne via users) Date: Thu, 2 Jul 2026 12:34:51 +0200 (CEST) Subject: [SasView Users] Model building in sasview In-Reply-To: References: Message-ID: <2064088427.1684815.1782988491937.JavaMail.zimbra@cnrs.fr> Dear Harrison, My understanding is that you need to save each elementary summation/multiplication in an intermediate model with a new name, because brackets is not working. And combine models step by step using only A+B or A*B operations. This should work if one reads the documentation. Another solution is to do it from a jupyter notebook. >From my own experience, calling a sum of 3 or 4 models works directly ! :) But I never tried a similar situation to yours when both + and * are combined. Good luck ! Marianne De: "Paul Butler via users" À: "Harrison Laurent" , "Maling list for users of SasView" Envoyé: Mercredi 1 Juillet 2026 21:39:28 Objet: Re: [SasView Users] Model building in sasview Hi Harrison, I cannot say that I've every tried that but note that the documentation does suggest (or at least imply) it is possible. So I tried and failed. I've forwarded your message to the developers mailing list. Hopefully somebody will know the answer? Cheers Paul On Wed, Jul 1, 2026 at 2:44 PM Harrison Laurent via users < [ mailto:users at lists.sasview.org | users at lists.sasview.org ] > wrote: Hello, I hope you are well. I am currently trying to build a reasonably complex model within sasview and have gone to the guide on how to manage this. I see in the documentation (SasView-6.1.3/sas/docs/user/qtgui/Perspectives/Fitting/fitting_help.html) that to achieve this one creates a 'simple' model combining two established models, then opens the model in the model editor. One can then add/multiply several different functions together by editing the text after 'load_model_info'. My question is how do I account for multiplying several summed models by a single other model, as brackets seemingly cannot be used. AKA how do I achieve the following sort of functions: (sphere + gaussian_peak + sphere)*user_defined_fractal_model ((sphere + gaussian_peak) + sphere)*user_defined_fractal_model ((sphere + sphere)*user_defined_fractal_model) + gaussian_peak Any insight you have would be extremely helpful. Thank you so much. All the best, Harrison Laurent _______________________________________________ users mailing list [ mailto:users at lists.sasview.org | users at lists.sasview.org ] [ http://lists.sasview.org/cgi-bin/mailman/listinfo/users | http://lists.sasview.org/cgi-bin/mailman/listinfo/users ] _______________________________________________ users mailing list users at lists.sasview.org http://lists.sasview.org/cgi-bin/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: