Changeset be2775f in sasview


Ignore:
Timestamp:
Mar 21, 2016 2:37:11 PM (8 years ago)
Author:
gonzalezm
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
70e5f97
Parents:
d85b0c7 (diff), a8787f9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of https://github.com/SasView/sasview

Files:
13 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

    r92f05de 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""" 
  • src/sas/sasgui/perspectives/fitting/models.py

    r08959b8 rd85b0c7  
    151151    try: 
    152152        import compileall 
    153         compileall.compile_dir(dir=dir, ddir=dir, force=1, 
     153        compileall.compile_dir(dir=dir, ddir=dir, force=0, 
    154154                               quiet=report_problem) 
    155155    except: 
Note: See TracChangeset for help on using the changeset viewer.