From users at lists.sasview.org Mon Jan 8 06:57:03 2024 From: users at lists.sasview.org (Constantina Sofroniou via users) Date: Mon, 8 Jan 2024 11:57:03 +0000 Subject: [SasView Users] Inquiry Regarding Model Fitting Message-ID: Dear SasView team, I hope this email finds you well. My name is Constantina, and I am a post-doc at the Department of Materials, Loughborough University. I have a specific inquiry and am uncertain about the appropriate contact person. We are currently researching liposome-gold nanoparticle interactions and have acquired recent SANS data that poses challenges when fitting it with existing models. Our hypothesis is that gold nanoparticles penetrate the liposome phospholipid bilayer. After reviewing available models, we believe that the raspberry model, with a modification to incorporate a core in the large particle, would be the most suitable for our data (https://www.sasview.org/docs/user/models/raspberry.html). Could you please direct me to the right person or provide assistance in connecting with someone who can help us modify the model as described? Thank you in advance for your time and support. Best regards, Constantina -- Constantina Sofroniou, PhD (she/her) Postdoctoral Research Associate Department of Materials Loughborough University LE11 3TU Loughborough Leicesterhire United Kingdom -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Tue Jan 9 12:06:34 2024 From: users at lists.sasview.org (Stephen King - STFC UKRI via users) Date: Tue, 9 Jan 2024 17:06:34 +0000 Subject: [SasView Users] Inquiry Regarding Model Fitting In-Reply-To: References: Message-ID: Dear Constantina, Thank you for your email. By emailing the SasView Users list you are reaching out to all those Users signed up to that list, as well as members of the SasView development team. So you may get multiple replies. You can modify the raspberry model yourself. You will find the files in C:\SasView-5.0.6\sasmodels\models (or the equivalent path for where you have installed SasView). There are two files: raspberry.py raspberry.c Copy these to your plugin models folder (eg: C:\Users\\.sasview\plugin_models, and rename them; maybe core_shell_raspberry? Edit core_shell_raspberry.py and change these two lines to reflect the name changes: name = "raspberry" #the name of the model must match the name of the file source = ["lib/sas_3j1x_x.c", "raspberry.c"] At this point, if you save the files and start SasView you should be able to load a model called core_shell_raspberry from the Plugin category and use it (although, of course, at this point it is still the normal raspberry model). If this works, then you can modify these two files to meet your requirements. There is information on what these files contain, and therefore what you may need to change, here: https://www.sasview.org/downloads/creating_custom_fitting_models_in_sasview_v5.pdf https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/plugin.html Does this help answer your query? 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 On Behalf Of Constantina Sofroniou via users Sent: 08 January 2024 11:57 To: users at sasview.org Subject: [SasView Users] Inquiry Regarding Model Fitting Dear SasView team, I hope this email finds you well. My name is Constantina, and I am a post-doc at the Department of Materials, Loughborough University. I have a specific inquiry and am uncertain about the appropriate contact person. We are currently researching liposome-gold nanoparticle interactions and have acquired recent SANS data that poses challenges when fitting it with existing models. Our hypothesis is that gold nanoparticles penetrate the liposome phospholipid bilayer. After reviewing available models, we believe that the raspberry model, with a modification to incorporate a core in the large particle, would be the most suitable for our data (https://www.sasview.org/docs/user/models/raspberry.html). Could you please direct me to the right person or provide assistance in connecting with someone who can help us modify the model as described? Thank you in advance for your time and support. Best regards, Constantina -- Constantina Sofroniou, PhD (she/her) Postdoctoral Research Associate Department of Materials Loughborough University LE11 3TU Loughborough Leicesterhire United Kingdom -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Wed Apr 17 05:11:10 2024 From: users at lists.sasview.org (Rini P R via users) Date: Wed, 17 Apr 2024 09:11:10 +0000 Subject: [SasView Users] Inquiry regarding fitting the SAXS data Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Wed Apr 17 10:46:44 2024 From: users at lists.sasview.org (Paul Butler via users) Date: Wed, 17 Apr 2024 10:46:44 -0400 Subject: [SasView Users] Inquiry regarding fitting the SAXS data In-Reply-To: References: Message-ID: 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 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 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 Apr 18 05:12:04 2024 From: users at lists.sasview.org (Rini P R via users) Date: Thu, 18 Apr 2024 09:12:04 +0000 Subject: [SasView Users] Inquiry regarding fitting the SAXS data Message-ID: 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. [cid:86df6596-a5bf-4b17-a433-caa8f0f6b7a6] [cid:7ecbfbc7-e18e-4ea2-ae0b-2d12632bc35c] But when I tried to do that I am getting an error message in Sasview as [cid:f6b1c3fe-8b00-4a40-a367-286adf4d1faf] 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 Sent: Wednesday, April 17, 2024 16:46 To: Rini P R Cc: users at 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 > 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 at lists.sasview.org http://lists.sasview.org/cgi-bin/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-phe1fwj0.png Type: image/png Size: 80129 bytes Desc: Outlook-phe1fwj0.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-awjn5a3x.png Type: image/png Size: 24081 bytes Desc: Outlook-awjn5a3x.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-l0bvhdyq.png Type: image/png Size: 75506 bytes Desc: Outlook-l0bvhdyq.png URL: From users at lists.sasview.org Thu Apr 18 05:18:10 2024 From: users at lists.sasview.org (Stephen King - STFC UKRI via users) Date: Thu, 18 Apr 2024 09:18:10 +0000 Subject: [SasView Users] Inquiry regarding fitting the SAXS data In-Reply-To: References: Message-ID: 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 On Behalf Of Rini P R via users Sent: 18 April 2024 10:12 To: Paul Butler Cc: users at 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. [cid:image001.png at 01DA9179.B5786E90] [cid:image002.png at 01DA9179.B5786E90] But when I tried to do that I am getting an error message in Sasview as [cid:image003.png at 01DA9179.B5786E90] 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 > Sent: Wednesday, April 17, 2024 16:46 To: Rini P R > Cc: users at 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 > 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 at lists.sasview.org http://lists.sasview.org/cgi-bin/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 52293 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 24081 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 75506 bytes Desc: image003.png URL: From users at lists.sasview.org Thu Apr 18 05:52:53 2024 From: users at lists.sasview.org (Rini P R via users) Date: Thu, 18 Apr 2024 09:52:53 +0000 Subject: [SasView Users] Inquiry regarding fitting the SAXS data In-Reply-To: References: Message-ID: 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. [cid:79cb5a99-f972-4c08-a651-43d9ef63224e] [cid:c5f4588e-6c8a-4e15-808a-2cf68b44af5f] 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 Sent: Thursday, April 18, 2024 11:18 To: Rini P R Cc: users at 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 On Behalf Of Rini P R via users Sent: 18 April 2024 10:12 To: Paul Butler Cc: users at 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. [cid:image001.png at 01DA9179.B5786E90] [cid:image002.png at 01DA9179.B5786E90] But when I tried to do that I am getting an error message in Sasview as [cid:image003.png at 01DA9179.B5786E90] 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 > Sent: Wednesday, April 17, 2024 16:46 To: Rini P R > Cc: users at 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 > 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 at lists.sasview.org http://lists.sasview.org/cgi-bin/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 52293 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 24081 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 75506 bytes Desc: image003.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 12559 bytes Desc: image.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 26681 bytes Desc: image.png URL: From users at lists.sasview.org Thu Apr 18 06:10:33 2024 From: users at lists.sasview.org (Stephen King - STFC UKRI via users) Date: Thu, 18 Apr 2024 10:10:33 +0000 Subject: [SasView Users] Inquiry regarding fitting the SAXS data In-Reply-To: References: Message-ID: 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 Sent: 18 April 2024 10:53 To: King, Stephen (STFC,RAL,ISIS) Cc: users at 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. [cid:image004.png at 01DA9181.07312180] [cid:image005.png at 01DA9181.07312180] 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 > Sent: Thursday, April 18, 2024 11:18 To: Rini P R > Cc: users at 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 > On Behalf Of Rini P R via users Sent: 18 April 2024 10:12 To: Paul Butler > Cc: users at 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. [cid:image006.png at 01DA9181.07312180] [cid:image007.png at 01DA9181.07312180] But when I tried to do that I am getting an error message in Sasview as [cid:image008.png at 01DA9181.07312180] 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 > Sent: Wednesday, April 17, 2024 16:46 To: Rini P R > Cc: users at 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 > 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 at lists.sasview.org http://lists.sasview.org/cgi-bin/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 12559 bytes Desc: image004.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 26681 bytes Desc: image005.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.png Type: image/png Size: 52293 bytes Desc: image006.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image007.png Type: image/png Size: 24081 bytes Desc: image007.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image008.png Type: image/png Size: 75506 bytes Desc: image008.png URL: From users at lists.sasview.org Thu Apr 18 08:27:57 2024 From: users at lists.sasview.org (Rini P R via users) Date: Thu, 18 Apr 2024 12:27:57 +0000 Subject: [SasView Users] Inquiry regarding fitting the SAXS data In-Reply-To: References: Message-ID: 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. [cid:b9fe5172-e2bb-44ca-be5f-27a588d5a30a] 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 Sent: Thursday, April 18, 2024 12:10 To: Rini P R Cc: users at 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 Sent: 18 April 2024 10:53 To: King, Stephen (STFC,RAL,ISIS) Cc: users at 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. [cid:image004.png at 01DA9181.07312180] [cid:image005.png at 01DA9181.07312180] 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 > Sent: Thursday, April 18, 2024 11:18 To: Rini P R > Cc: users at 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 > On Behalf Of Rini P R via users Sent: 18 April 2024 10:12 To: Paul Butler > Cc: users at 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. [cid:image006.png at 01DA9181.07312180] [cid:image007.png at 01DA9181.07312180] But when I tried to do that I am getting an error message in Sasview as [cid:image008.png at 01DA9181.07312180] 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 > Sent: Wednesday, April 17, 2024 16:46 To: Rini P R > Cc: users at 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 > 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 at lists.sasview.org http://lists.sasview.org/cgi-bin/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 12559 bytes Desc: image004.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 26681 bytes Desc: image005.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.png Type: image/png Size: 52293 bytes Desc: image006.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image007.png Type: image/png Size: 24081 bytes Desc: image007.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image008.png Type: image/png Size: 75506 bytes Desc: image008.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 34077 bytes Desc: image.png URL: From users at lists.sasview.org Thu Apr 18 08:32:10 2024 From: users at lists.sasview.org (Stephen King - STFC UKRI via users) Date: Thu, 18 Apr 2024 12:32:10 +0000 Subject: [SasView Users] Inquiry regarding fitting the SAXS data In-Reply-To: References: Message-ID: 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 Sent: 18 April 2024 13:28 To: King, Stephen (STFC,RAL,ISIS) Cc: users at 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. [cid:image001.png at 01DA9194.CFD15200] 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 > Sent: Thursday, April 18, 2024 12:10 To: Rini P R > Cc: users at 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 > Sent: 18 April 2024 10:53 To: King, Stephen (STFC,RAL,ISIS) > Cc: users at 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. [cid:image002.png at 01DA9194.CFD15200] [cid:image003.png at 01DA9194.CFD15200] 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 > Sent: Thursday, April 18, 2024 11:18 To: Rini P R > Cc: users at 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 > On Behalf Of Rini P R via users Sent: 18 April 2024 10:12 To: Paul Butler > Cc: users at 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. [cid:image004.png at 01DA9194.CFD15200] [cid:image005.png at 01DA9194.CFD15200] But when I tried to do that I am getting an error message in Sasview as [cid:image006.png at 01DA9194.CFD15200] 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 > Sent: Wednesday, April 17, 2024 16:46 To: Rini P R > Cc: users at 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 > 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 at lists.sasview.org http://lists.sasview.org/cgi-bin/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 95000 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 12559 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 26681 bytes Desc: image003.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 52293 bytes Desc: image004.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 24081 bytes Desc: image005.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.png Type: image/png Size: 75506 bytes Desc: image006.png URL: From users at lists.sasview.org Thu Apr 18 09:37:50 2024 From: users at lists.sasview.org (Rini P R via users) Date: Thu, 18 Apr 2024 13:37:50 +0000 Subject: [SasView Users] Inquiry regarding fitting the SAXS data In-Reply-To: References: Message-ID: Dear Stephen, Yes! it works in 6.0.0a1. Thank you very much for the help. 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 Sent: Thursday, April 18, 2024 14:32 To: Rini P R Cc: users at sasview.org Subject: RE: [SasView Users] Inquiry regarding fitting the SAXS data 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 Sent: 18 April 2024 13:28 To: King, Stephen (STFC,RAL,ISIS) Cc: users at 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. [cid:image001.png at 01DA9194.CFD15200] 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 > Sent: Thursday, April 18, 2024 12:10 To: Rini P R > Cc: users at 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 > Sent: 18 April 2024 10:53 To: King, Stephen (STFC,RAL,ISIS) > Cc: users at 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. [cid:image002.png at 01DA9194.CFD15200] [cid:image003.png at 01DA9194.CFD15200] 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 > Sent: Thursday, April 18, 2024 11:18 To: Rini P R > Cc: users at 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 > On Behalf Of Rini P R via users Sent: 18 April 2024 10:12 To: Paul Butler > Cc: users at 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. [cid:image004.png at 01DA9194.CFD15200] [cid:image005.png at 01DA9194.CFD15200] But when I tried to do that I am getting an error message in Sasview as [cid:image006.png at 01DA9194.CFD15200] 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 > Sent: Wednesday, April 17, 2024 16:46 To: Rini P R > Cc: users at 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 > 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 at lists.sasview.org http://lists.sasview.org/cgi-bin/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 95000 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 12559 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 26681 bytes Desc: image003.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 52293 bytes Desc: image004.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 24081 bytes Desc: image005.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.png Type: image/png Size: 75506 bytes Desc: image006.png URL: From users at lists.sasview.org Mon Jun 3 10:02:37 2024 From: users at lists.sasview.org (Ian Billinge via users) Date: Mon, 3 Jun 2024 10:02:37 -0400 Subject: [SasView Users] Cannot find 'sas' module in sasmodels package Message-ID: Hello everyone, I am trying to run the scripting tutorial , and I am unable to run the code because I can't import the 'sas' package. When I run the import statements at the top of the tutorial, i.e. import sys > from bumps.names import * > from sasmodels.core import load_model > from sasmodels.bumps_model import Model, Experiment > from sasmodels.data import load_data, set_beam_stop, set_top I get > --------------------------------------------------------------------------- > ModuleNotFoundError Traceback (most recent call last) > Cell In[9], line 4 > 2 from bumps.names import * > 3 from sasmodels.core import load_model > ----> 4 from sasmodels.bumps_model import Model, Experiment > 5 from sasmodels.data import load_data, set_beam_stop, set_top > > File > ~/micromamba/envs/smi_py311/lib/python3.11/site-packages/sasmodels/bumps_model.py:20 > 16 __all__ = ["Model", "Experiment", "BumpsParameter"] > 18 import numpy as np # type: ignore > ---> 20 from .data import plot_theory > 21 from .direct_model import DataMixin > 23 # pylint: disable=unused-import > > File > ~/micromamba/envs/smi_py311/lib/python3.11/site-packages/sasmodels/data.py:39 > 37 import numpy as np # type: ignore > 38 from numpy import sqrt, sin, cos, pi > ---> 39 import sas > 40 # pylint: disable=unused-import > 41 try: > > ModuleNotFoundError: No module named 'sas' I apparently have sasmodels installed, since I can successfully import load_model from sasmodels.core. However, it seems I am missing the sas package. I have searched online and wasn't able to find any such package. I ran a simple pip install sas, and indeed, something downloaded, but it didn't resolve the issue. Any insights on the issue would be most appreciated. Best, Ian Billinge -- Ian Billinge *he/him/his* Ph.D Student, Yip Lab Dept. of Earth & Environmental Engineering Fu Foundation School of Engineering Columbia University in the City of New York -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Mon Jun 3 10:12:10 2024 From: users at lists.sasview.org (Lucas Wilkins - STFC UKRI via users) Date: Mon, 3 Jun 2024 14:12:10 +0000 Subject: [SasView Users] Cannot find 'sas' module in sasmodels package In-Reply-To: References: Message-ID: sas is the main package of sasview. I think that line should not be there. In latest version of sasmodels/data.py it isn't there: import numpy as np # type: ignore from numpy import sqrt, sin, cos, pi # pylint: disable=unused-import try: from typing import Union, Dict, List, Optional, Tuple, Callable Data = Union["Data1D", "Data2D", "SesansData"] Try cloning the latest sasmodels (and sasdata)? ________________________________ From: users on behalf of Ian Billinge via users Sent: 03 June 2024 15:02 To: users at lists.sasview.org Subject: [SasView Users] Cannot find 'sas' module in sasmodels package Hello everyone, I am trying to run the scripting tutorial, and I am unable to run the code because I can't import the 'sas' package. When I run the import statements at the top of the tutorial, i.e. import sys from bumps.names import * from sasmodels.core import load_model from sasmodels.bumps_model import Model, Experiment from sasmodels.data import load_data, set_beam_stop, set_top I get --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In[9], line 4 2 from bumps.names import * 3 from sasmodels.core import load_model ----> 4 from sasmodels.bumps_model import Model, Experiment 5 from sasmodels.data import load_data, set_beam_stop, set_top File ~/micromamba/envs/smi_py311/lib/python3.11/site-packages/sasmodels/bumps_model.py:20 16 __all__ = ["Model", "Experiment", "BumpsParameter"] 18 import numpy as np # type: ignore ---> 20 from .data import plot_theory 21 from .direct_model import DataMixin 23 # pylint: disable=unused-import File ~/micromamba/envs/smi_py311/lib/python3.11/site-packages/sasmodels/data.py:39 37 import numpy as np # type: ignore 38 from numpy import sqrt, sin, cos, pi ---> 39 import sas 40 # pylint: disable=unused-import 41 try: ModuleNotFoundError: No module named 'sas' I apparently have sasmodels installed, since I can successfully import load_model from sasmodels.core. However, it seems I am missing the sas package. I have searched online and wasn't able to find any such package. I ran a simple pip install sas, and indeed, something downloaded, but it didn't resolve the issue. Any insights on the issue would be most appreciated. Best, Ian Billinge -- Ian Billinge he/him/his Ph.D Student, Yip Lab Dept. of Earth & Environmental Engineering Fu Foundation School of Engineering Columbia University in the City of New York -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Mon Jun 3 12:41:09 2024 From: users at lists.sasview.org (Ian Billinge via users) Date: Mon, 3 Jun 2024 12:41:09 -0400 Subject: [SasView Users] Cannot find 'sas' module in sasmodels package In-Reply-To: References: Message-ID: Hi Lucas, Thank you, your advice worked perfectly! Ian On Mon, Jun 3, 2024 at 10:12 AM Lucas Wilkins - STFC UKRI < lucas.wilkins at stfc.ac.uk> wrote: > sas is the main package of sasview. I think that line should not be there. > > In latest version of sasmodels/data.py it isn't there: > > > import numpy as np # type: ignore > from numpy import sqrt, sin, cos, pi > > # pylint: disable=unused-import > try: > from typing import Union, Dict, List, Optional, Tuple, Callable > Data = Union["Data1D", "Data2D", "SesansData"] > > Try cloning the latest sasmodels (and sasdata)? > > ------------------------------ > *From:* users on behalf of Ian Billinge > via users > *Sent:* 03 June 2024 15:02 > *To:* users at lists.sasview.org > *Subject:* [SasView Users] Cannot find 'sas' module in sasmodels package > > Hello everyone, > > I am trying to run the scripting tutorial > , > and I am unable to run the code because I can't import the 'sas' package. > > When I run the import statements at the top of the tutorial, i.e. > > import sys > from bumps.names import * > from sasmodels.core import load_model > from sasmodels.bumps_model import Model, Experiment > from sasmodels.data import load_data, set_beam_stop, set_top > > > I get > > --------------------------------------------------------------------------- > ModuleNotFoundError Traceback (most recent call last) > Cell In[9], line 4 > 2 from bumps.names import * > 3 from sasmodels.core import load_model > ----> 4 from sasmodels.bumps_model import Model, Experiment > 5 from sasmodels.data import load_data, set_beam_stop, set_top > > File > ~/micromamba/envs/smi_py311/lib/python3.11/site-packages/sasmodels/bumps_model.py:20 > 16 __all__ = ["Model", "Experiment", "BumpsParameter"] > 18 import numpy as np # type: ignore > ---> 20 from .data import plot_theory > 21 from .direct_model import DataMixin > 23 # pylint: disable=unused-import > > File > ~/micromamba/envs/smi_py311/lib/python3.11/site-packages/sasmodels/data.py:39 > 37 import numpy as np # type: ignore > 38 from numpy import sqrt, sin, cos, pi > ---> 39 import sas > 40 # pylint: disable=unused-import > 41 try: > > ModuleNotFoundError: No module named 'sas' > > > I apparently have sasmodels installed, since I can successfully import load_model > from sasmodels.core. However, it seems I am missing the sas package. I > have searched online and wasn't able to find any such package. I ran a > simple pip install sas, and indeed, something downloaded, but it didn't > resolve the issue. > > Any insights on the issue would be most appreciated. > > Best, > > Ian Billinge > -- > Ian Billinge > *he/him/his* > Ph.D Student, Yip Lab > Dept. of Earth & Environmental Engineering > Fu Foundation School of Engineering > Columbia University in the City of New York > -- Ian Billinge *he/him/his* Ph.D Student, Yip Lab Dept. of Earth & Environmental Engineering Fu Foundation School of Engineering Columbia University in the City of New York -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Fri Nov 22 05:05:32 2024 From: users at lists.sasview.org (Stephen King - STFC UKRI via users) Date: Fri, 22 Nov 2024 10:05:32 +0000 Subject: [SasView Users] SasView News and a New Release (6.0.0) Message-ID: Dear Members of the SasView User List, We hope this email finds you safe and well. GENERAL NEWS It is 18 months since our last release of SasView but in that time the Developer Community has been quite active. A new release, SasView 6.0.0, now brings a raft of new features, feature enhancements, bug fixes and improvements in documentation, as well as a new icon! Importantly, SasView 6.0.0 also (finally) achieves feature-parity with SasView 4.x. We hope you like it! We would like to remind you that there is no active development of SasView 4.x, nor has there been any for several years, and now with the release of SasView 6.x we shall cease development of SasView 5.x. All users are therefore strongly encouraged to upgrade to SasView 6.x. However, multiple versions of SasView can be installed and used alongside one another provided they are installed to different folders. In other news: * A Core Developer Code Camp was held in Abingdon, UK in September 2023. This was followed by a (now rebranded) Contributor Camp at the University of Delaware, USA in January 2024. The latter was a huge success with over 30 people taking part, two-thirds of them first-timers and one-third from outside the USA, from some 15 different facilities or universities! * In November 2024, several SasView developers and contributors attended SAS-2024 in Taipei where they delivered an afternoon tutorial session on SasView to a packed audience! * You can now follow and tag SasView on LinkedIn! #SasView * SasView continues to benefit from great work by vacation students and interns embedded at large-scale scattering facilities or in university research groups and mentored by members of the established SasView developer community. There have been around a dozen such contributors to date. Examples of some of the recent work they have undertaken include: o Refactoring how SasView handles its data objects o Reimagining plot handling o Weighting in constrained fitting o Extended support for the analysis of Magnetic-SAS If you want to see some aspect of SasView developed and have the funds/resources to offer such positions we would love to hear from you! NEW RELEASE The Development Team is pleased to announce the release of SasView 6.0.0, available for download as usual through the website at www.sasview.org. This is a major release with many new features and enhancements, including: * A What's New window has been introduced. * A Preferences option has been introduced, along with a screen scaling factor (useful when running SasView on laptops/notebooks). * The Orientation Viewer tool, last seen in SasView 4.x, has been re-introduced. * It is now possible to assign relative weights to different data sets when doing constrained/simultaneous fits (useful for co-fitting SAXS and SANS data, for example). * The Corfunc (correlation function) analysis perspective has been completely overhauled. * The Debye scattering calculation in the Generic Scattering Calculator tool has been made significantly faster (useful if computing scattering from PDB files, for example). * New slicers for the analysis of 2D data have been added. For the full details of what has changed, be sure to read the Release Notes. Mac users might like to note that there are now separate installers for both Apple silicon and Intel architectures. Please note that at the time of writing we are unable to offer a conda package for SasView 6.0.0 due to issues beyond our control, but we are working towards one. However a 'Flatpak' for Linux is available on request to help at sasview.org. NEW MODELS The following models have been added to the Model Marketplace since v5.0.6 was released: * Binary Blend (revised) * core_multi_shell_cylinder * fuzzy_sphere_extended * Superball (a cube with rounded edges) * Supercylinder (a superellipsoid) * Spherical Micelle * Cylindrical Micelle * Long Cylindrical Micelle * Enhanced Cylinder Models for SasView (improved integration accuracy and performance) * Enhanced Ellipsoid Models for SasView (improved integration accuracy and performance) KNOWN ISSUES The rpa (Random Phase Approximation, for polymer scattering) model remains withdrawn in the SasView GUI whilst we deal with a UI problem. However the rpa model is available from the scripting interface. As a partial workaround for those that prefer to use the GUI, a Binary Blend model is available on the Marketplace. Most plots are currently being displayed on log-log axes, even those that it really doesn't make sense for, like the residuals! This will be fixed in the next point release. Of course, as always, there remain many things that could be added, improved or, sadly, that need fixing. So please continue to provide feedback, bug reports (issues), and, when possible, fixes, either to the code or the documentation or tutorials, as GitHub pull requests, for those who can, or by simply emailing help at sasview.org. FUTURE PLANS A Mini SasView Contributor Camp, in association with the LINXS advanced study institute, is to be held in Lund, Sweden January 9-10 2025. And we are also considering another in the Fall of 2025 (date & venue tbc). Meanwhile the SasView magnetic scattering community are holding a satellite workshop at the ICNS 2025 Conference, July 6-10 2025. Registrations will open soon! Please keep an eye on the SasView webpage (www.sasview.org) or the ICNS conference webpage (https://icns2025.dk/). Meanwhile, if you would like further details, please contact Annika Stellhorn. There are also ideas for a magnetic scattering-themed SasView Contributor Workshop later in 2025. Thank you for your continued support! And, as ever, if you would like to get involved, please see https://www.sasview.org/contribute/ for further information. The SasView Development Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Mon Dec 23 10:35:27 2024 From: users at lists.sasview.org (Hubert King via users) Date: Mon, 23 Dec 2024 10:35:27 -0500 Subject: [SasView Users] how to save theory for multiple trials? Message-ID: I'd like to use sasview to test several sets for a given theory (core-shell) I can't seem to save each trial as a project When i save project and reopen, the model type and parameters have vanished There are no data, just calculations Hubert King -------------- next part -------------- An HTML attachment was scrubbed... URL: From users at lists.sasview.org Sat Dec 28 12:49:48 2024 From: users at lists.sasview.org (Stephen King - STFC UKRI via users) Date: Sat, 28 Dec 2024 17:49:48 +0000 Subject: [SasView Users] how to save theory for multiple trials? In-Reply-To: References: Message-ID: Hi Hubert, I've done a little digging and it seems this is a long-standing bug that we thought had been fixed... but whose resolution I now rather suspect was obfuscated by some other issues that appeared in trying to address it. So our apologies for that. I have reopened the original issue on GitHub. I've also done a little testing and I'm sorry to say that I cannot see an easy workaround for you. The best I can offer is to point out that you can save the computed theory curves to file by either right-clicking on the plot or on the theory dataset in the Data Explorer, and you can save the model parameters in the FitPage to file using Edit > Copy params to format... or Edit > Save params to file, but there is no facility to reload them into a FitPage, it would be record-keeping only. This also has to be done FitPage by FitPage. Kind regards, Steve King On behalf of the SasView Collaboration SasView is a not-for-profit open source scientific software collaboration. Why not get involved? More details at https://www.sasview.org/contribute/. ________________________________ From: users on behalf of Hubert King via users Sent: 23 December 2024 15:35 To: users at sasview.org Subject: [SasView Users] how to save theory for multiple trials? I'd like to use sasview to test several sets for a given theory (core-shell) I can't seem to save each trial as a project When i save project and reopen, the model type and parameters have vanished There are no data, just calculations Hubert King -------------- next part -------------- An HTML attachment was scrubbed... URL: