SasView / sasmodels

Package for calculation of small angle scattering models using OpenCL.
BSD 3-Clause "New" or "Revised" License
15 stars 27 forks source link

Doc update for Jupyter notebook scripting and bumps import issue #526

Closed smk78 closed 1 year ago

smk78 commented 1 year ago

This PR addresses an issue raised by User RobD who had been trying to utilise the scripting example but found it did not work. The reason for this turned out to be two-fold:

First, the need to have pre-installed sasmodels and bumps came after the fact. The sequencing of relevant passages has been changed to address this. At the same time, links to more recent Jupyter notebook tutorials have also been added.

Second, it transpired that the included example contained an import statement that did not work in all versions of SasView! Very bizzarely, from bumps.names import * works in 4.2.2 and 5.0.5 but not in any intermediate version of SasView. The reason for this is still unclear. However, for future reference a clarifying note has been added to the scripting help.

pkienzle commented 1 year ago

For the mac distribution you can use /Applications/Sasview<TAB>.app/Contents/MacOS/sasview. This can be used directly or it can be symlinked into your path using:

mkdir ~/bin
ln -s /path/to/SasView.app/Contents/MacOS/sasview ~/bin

You will need to close and reopen the terminal for it to recognize the new ~/bin and put it on your path.

smk78 commented 1 year ago

@pkienzle , Ok have added that MacOS info.