Dear Rini,

 

Ok, that’s good to hear!

 

Does that new model now work in 6.0.0a1? If it does not, please could you make a copy of the file, rename it to .txt instead of .py and send it to us.

 

Kind regards,

Steve

 

From: Rini P R <rinipr@stud.ntnu.no>
Sent: 18 April 2024 13:28
To: King, Stephen (STFC,RAL,ISIS) <stephen.king@stfc.ac.uk>
Cc: users@sasview.org
Subject: Re: [SasView Users] Inquiry regarding fitting the SAXS data

 

Dear Stephen,

 

Thank you very much. It works now! I created a new python file for the new model instead of saving it into the older one. 

 

Kind regards,

Rini PR

 

PhD candidate

Institute for Energy Technology (IFE)

Kjeller, Norway

 

Workplace:

Soft and Complex matter lab

Department of Physics

Norwegian University of Science and Technology (NTNU)

Trondheim, Norway


From: Stephen King - STFC UKRI <stephen.king@stfc.ac.uk>
Sent: Thursday, April 18, 2024 12:10
To: Rini P R <rinipr@stud.ntnu.no>
Cc: users@sasview.org <users@sasview.org>
Subject: RE: [SasView Users] Inquiry regarding fitting the SAXS data

 

Dear Rini,

 

Your file is called example1 but the model name is called example2. Please can you make them the same and try again. In the tutorial example (p9) it does say save the file as example2. The actual names are less important than the need for them to be the same. This is a bug we haven’t gotten around to fixing yet.

 

Kind regards,
Steve

 

From: Rini P R <rinipr@stud.ntnu.no>
Sent: 18 April 2024 10:53
To: King, Stephen (STFC,RAL,ISIS) <stephen.king@stfc.ac.uk>
Cc: users@sasview.org
Subject: Re: [SasView Users] Inquiry regarding fitting the SAXS data

 

Dear Stephen,

 

Thank you for the email. I downloaded the latest version from the website and tried again. But I am getting a different error message. 

 

 

 

 

Best regards,

Rini PR

 

PhD candidate

Institute for Energy Technology (IFE)

Kjeller, Norway

 

Workplace:

Soft and Complex matter lab

Department of Physics

Norwegian University of Science and Technology (NTNU)

Trondheim, Norway


From: Stephen King - STFC UKRI <stephen.king@stfc.ac.uk>
Sent: Thursday, April 18, 2024 11:18
To: Rini P R <
rinipr@stud.ntnu.no>
Cc: 
users@sasview.org <users@sasview.org>
Subject: RE: [SasView Users] Inquiry regarding fitting the SAXS data

 

Dear Rini,

 

Please could you install release version 5.0.6 and try that.

 

Kind regards,

Steve King

 

 

On behalf of the Development Team

 

SasView is a not-for-profit collaboration. If you would like to get involved, please visit https://www.sasview.org/contribute/

 

 

 

From: users <users-bounces@lists.sasview.org> On Behalf Of Rini P R via users
Sent: 18 April 2024 10:12
To: Paul Butler <butlerpd@udel.edu>
Cc: users@sasview.org
Subject: Re: [SasView Users] Inquiry regarding fitting the SAXS data

 

Hi Paul,

 

Thank you very much for your email and for providing all the helpful links. It helps a lot!

 

I have found that the Raspberry model is not suitable for my systems, so I have created a plugin model using the power law and a cylinder. However, I needed to include the hayter_msa as structure factor. The tutorial showed how to include the structure factor in these plugin models, and I tried to follow the same steps.

 

 

But when I tried to do that I am getting an error message in Sasview as 

 

I tried to multiply the plugin model with structure factor, but I do not get the screen that I am supposed to get. 

 

I am using sasview 6.0.0a1 which I downloaded from the github. 

 

Could you please look into it and tell me what is the source of the error?

 

Best regards,

Rini PR

 

PhD candidate

Institute for Energy Technology (IFE)

Kjeller, Norway

 

Workplace:

Soft and Complex matter lab

Department of Physics

Norwegian University of Science and Technology (NTNU)

Trondheim, Norway


From: Paul Butler <butlerpd@udel.edu>
Sent: Wednesday, April 17, 2024 16:46
To: Rini P R <
rinipr@stud.ntnu.no>
Cc: 
users@sasview.org <users@sasview.org>
Subject: Re: [SasView Users] Inquiry regarding fitting the SAXS data

 

Hi Rini,

 

Just to clarify your question. I assume you are saying that the “raspberry model,” which was developed by the Pozzo group at the University of Washington to model pickering emulsions is not suitable for your case and you have developed your own plugin model?

Or is the question how to write a plugin model based on a model you have developed theoretically? Or is the question that your plugin does not allow you to multiply a structure factor with it?. Or are you wanting to write your own structure factor plugin? If in fact that next to last is what you are looking for, that should be pretty straightforward. Basically you will need to define the effective radius for interactions in your plugin model as described here: https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/plugin.html#form-factors

If you also want to be able to include the beta approximation option you will also need to calculate the F(Q) in your model (currently would require a c model) and declare that Fq is available in the python part of your model as described here: https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/plugin.html#structure-factors

Finally, if you want to create a structure factor you just need to include that flag (structure_factor=true) as explained here: https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/plugin.html#model-definition

 

Also we now have a tutorial on writing custom models available here: https://www.sasview.org/downloads/creating_custom_fitting_models_in_sasview_v5.pdf

 

Let me know if any of this helps, if you need more information, or if you are looking for something completely different

 

Stay safe

 

Paul Butler

developer team member

 

 

On Wed, Apr 17, 2024 at 5:11 AM Rini P R via users <users@lists.sasview.org> wrote:

Dear SasView Team,

 

I hope this message finds you well. My name is Rini and I am a PhD candidate in the Department of Physics at the Norwegian University of Science and Technology, Trondheim, Norway.

 

I have a specific question and I'm not sure who to contact. We are working with Pickering emulsions made with food-grade materials and have encountered challenges in fitting the data from our recent SAXS experiment with the available models. We have concluded that combining a structure factor with our current plugin model will enable us to fit our data and extract the information we need.

 

Could you please direct me to the right person or help me get in touch with someone who can assist us with modifying the model as described?

 

Thank you in advance for your time and support.

 

Best regards,

Rini PR

 

PhD candidate

Institute for Energy Technology (IFE)

Kjeller, Norway

 

Workplace:

Soft and Complex matter lab

Department of Physics

Norwegian University of Science and Technology (NTNU)

Trondheim, Norway

_______________________________________________
users mailing list
users@lists.sasview.org
http://lists.sasview.org/cgi-bin/mailman/listinfo/users