Changeset f41027b in sasmodels for doc/guide/pd/polydispersity.rst


Ignore:
Timestamp:
Jul 19, 2018 1:12:48 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master
Children:
d0fdba2
Parents:
7609046
Message:

change environment variable for distributions to SAS_WEIGHTS_PATH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/guide/pd/polydispersity.rst

    r7609046 rf41027b  
    405405the volume fraction to lie between zero and one. 
    406406 
    407 To activate a user-defined distribution, set the following environment variable: 
    408  
    409     SASMODELS_WEIGHTS=path/to/folder/name_of_distribution.py 
     407To activate a user-defined distribution, put it in a file such as *distname.py* 
     408in the *SAS_WEIGHTS_PATH* folder.  This is defined with an environment 
     409variable, defaulting to:: 
     410 
     411    SAS_WEIGHTS_PATH=~/.sasview/weights 
     412 
     413The weights path is loaded on startup.  To update the distribution definition 
     414in a running application you will need to enter the following python commands:: 
     415 
     416    import sasmodels.weights 
     417    sasmodels.weights.load_weights('path/to/distname.py') 
    410418 
    411419.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
Note: See TracChangeset for help on using the changeset viewer.