<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Dear Harrison,</div><div><br data-mce-bogus="1"></div><div>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.</div><div><br data-mce-bogus="1"></div><div>And combine models step by step using only A+B or A*B operations.</div><div><br data-mce-bogus="1"></div><div>This should work if one reads the documentation.</div><div><br data-mce-bogus="1"></div><div>Another solution is to do it from a jupyter notebook.</div><div>From my own experience, calling a sum of 3 or 4 models works directly ! :)</div><div>But I never tried a similar situation to yours when both + and * are combined.</div><div><br data-mce-bogus="1"></div><div>Good luck !</div><div>Marianne</div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Paul Butler via users" <users@lists.sasview.org><br><b>À: </b>"Harrison Laurent" <H.Laurent@leeds.ac.uk>, "Maling list for users of SasView" <users@lists.sasview.org><br><b>Envoyé: </b>Mercredi 1 Juillet 2026 21:39:28<br><b>Objet: </b>Re: [SasView Users] Model building in sasview<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div dir="ltr">Hi Harrison,<br><div>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?</div><br><div>Cheers</div><div>Paul</div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jul 1, 2026 at 2:44 PM Harrison Laurent via users <<a href="mailto:users@lists.sasview.org" target="_blank">users@lists.sasview.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3577964305272865985">
<div dir="ltr">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
Hello,</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
<br>
</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
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'.</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
<br>
</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
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:</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
<br>
</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
(sphere + gaussian_peak + sphere)*user_defined_fractal_model</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
<br>
</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
((sphere + gaussian_peak) + sphere)*user_defined_fractal_model</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
<br>
</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
((sphere + sphere)*user_defined_fractal_model) + gaussian_peak</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
<br>
</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
Any insight you have would be extremely helpful. Thank you so much.</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
<br>
</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
All the best,</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
<br>
</div>
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px;font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:black">
Harrison Laurent</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.sasview.org" target="_blank">users@lists.sasview.org</a><br>
<a href="http://lists.sasview.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.sasview.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote></div>
<br>_______________________________________________<br>users mailing list<br>users@lists.sasview.org<br>http://lists.sasview.org/cgi-bin/mailman/listinfo/users<br></div></div></body></html>