Changes in / [d85b0c7:be2775f] in sasview


Ignore:
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/build_sphinx.py

    rf603bec r5420ef6  
    3838SASMODELS_SOURCE_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model") 
    3939SASMODELS_SOURCE_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model", "img") 
     40SASMODELS_SOURCE_AUTOIMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "_build", "html","_images") 
    4041SASMODELS_DEST_PROLOG = os.path.join(CURRENT_SCRIPT_DIR, "source") 
    4142SASMODELS_DEST_REF_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "source", "user") 
    4243SASMODELS_DEST_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "source", "user", "models") 
    4344SASMODELS_DEST_IMG = os.path.join(CURRENT_SCRIPT_DIR,  "source", "user", "model-imgs", "new-models") 
     45SASMODELS_DEST_BUILDIMG = os.path.join(CURRENT_SCRIPT_DIR,  "source", "user", "models", "img") 
    4446 
    4547#if os.path.exists(SASMODELS_SOURCE_PROLOG): 
     
    145147    print "=== And the Sasmodels Docs ==="  
    146148    # Make sure we have the relevant images for the new sasmodels documentation 
     149    # First(!) we'll make a local reference copy for SasView (/new-models will be cleaned each build) 
    147150    if os.path.exists(SASMODELS_SOURCE_IMG): 
    148151        print "Found img  folder SASMODELS_SOURCE_IMG    at ", SASMODELS_SOURCE_IMG 
     
    155158                shutil.copy(fromhere,tohere) 
    156159 
     160    if os.path.exists(SASMODELS_SOURCE_AUTOIMG): 
     161        print "Found img  folder SASMODELS_SOURCE_AUTOIMG    at ", SASMODELS_SOURCE_AUTOIMG 
     162        if os.path.exists(SASMODELS_DEST_IMG): 
     163            print "Copying sasmodels model auto-generated image files..." 
     164            for files in os.listdir(SASMODELS_SOURCE_AUTOIMG): 
     165                fromhere=os.path.join(SASMODELS_SOURCE_AUTOIMG,files) 
     166                tohere=os.path.join(SASMODELS_DEST_IMG,files) 
     167                shutil.copy(fromhere,tohere) 
     168     
    157169    # And the rst prolog with the unit substitutions 
    158170    if os.path.exists(SASMODELS_SOURCE_PROLOG): 
     
    203215                    tohere=os.path.join(SASMODELS_DEST_MODELS,files) 
    204216                    shutil.copy(fromhere,tohere) 
     217        else: 
     218            print "Missing docs folder SASMODELS_DEST_MODELS at ", SASMODELS_DEST_MODELS 
     219            os.makedirs(SASMODELS_DEST_MODELS) 
     220            if not os.path.exists(SASMODELS_DEST_BUILDIMG): 
     221                os.makedirs(SASMODELS_DEST_BUILDIMG) 
     222            print "Created docs folder SASMODELS_DEST_MODELS at ", SASMODELS_DEST_MODELS 
     223            print "Copying model files for build..." 
     224            for files in os.listdir(SASMODELS_SOURCE_MODELS): 
     225                if files.endswith(".rst"): 
     226                    fromhere=os.path.join(SASMODELS_SOURCE_MODELS,files) 
     227                    tohere=os.path.join(SASMODELS_DEST_MODELS,files) 
     228                    shutil.copy(fromhere,tohere) 
     229            # No choice but to do this because model files are all coded for images in /models/img 
     230            print "Copying image files for build..." 
     231            for files in os.listdir(SASMODELS_DEST_IMG): 
     232                fromhere=os.path.join(SASMODELS_DEST_IMG,files) 
     233                tohere=os.path.join(SASMODELS_DEST_BUILDIMG,files) 
     234                shutil.copy(fromhere,tohere) 
    205235 
    206236 
  • docs/sphinx-docs/source/user/shape-sphere.rst

    r5757bbe r61991ed  
    1515    models/fuzzy_sphere.rst 
    1616    models/linear_pearls.rst 
    17     models/multi_shell.rst 
     17    models/multilayer_vesicle.rst 
    1818    models/onion.rst 
    1919    models/polymer_micelle.rst 
  • docs/sphinx-docs/source/user/user.rst

    r0c2c324 r5a71761  
    77   :maxdepth: 1 
    88 
    9    SasView (4.x.x) Model Documentation <index> 
     9   SasView Model Documentation <index> 
    1010 
    1111   Analysis <analysis> 
  • setup.py

    r1af8548 r9274711  
    254254packages.append("sas.sasgui.plottools") 
    255255 
    256 # Last of the sas.models 
    257 package_dir["sas.models"] = os.path.join("src", "sas", "models") 
    258 packages.append("sas.models") 
     256# # Last of the sas.models 
     257# package_dir["sas.models"] = os.path.join("src", "sas", "models") 
     258# packages.append("sas.models") 
    259259 
    260260IGNORED_FILES = [".svn"] 
  • src/sas/sascalc/calculator/BaseComponent.py

    r9e531f2 r74c5521  
    106106 
    107107              qx_prime = [ qx[0], qx[1], qx[2], ....] 
     108 
    108109          and :: 
     110 
    109111              qy_prime = [ qy[0], qy[1], qy[2], ....] 
    110112 
    111113        Then get :: 
     114 
    112115            q = numpy.sqrt(qx_prime^2+qy_prime^2) 
    113116 
    114117        that is a qr in 1D array; :: 
     118 
    115119            q = [q[0], q[1], q[2], ....] 
    116120 
     
    123127 
    124128            evalDistribution(q) 
     129 
    125130        where q is a numpy array. 
    126131 
  • src/sas/sasgui/guiframe/data_processor.py

    rdc2da3d r74c5521  
    1212#Path to this is:           /sasview/src/sas/sasgui/guiframe/data_processor.py 
    1313#Path to image is:          /sasview/src/sas/sasgui/guiframe/media/BatchGridClassLayout.png 
    14 .. image::  ./guiframe/media/BatchGridClassLayout.png 
    15    :align:   center 
     14 
     15.. image:: ./guiframe/media/BatchGridClassLayout.png 
     16   :align: center 
    1617 
    1718""" 
Note: See TracChangeset for help on using the changeset viewer.