Changeset 53df2ea in sasview


Ignore:
Timestamp:
Feb 18, 2015 5:31:30 AM (10 years ago)
Author:
krzywon
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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
a10364b, 42811b8, 66f21cd, 6f82ba1
Parents:
ddc192a (diff), 25ab07c (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:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • build_tools/conda/README.md

    r981a1d4 rcf20539  
    4848# $ conda config --set binstar_upload yes 
    4949``` 
     50 
     51# Useful Links 
     52 
     53* http://conda.pydata.org/docs/build.html 
  • build_tools/conda/pyopencl/bld.bat

    r20b238df rd7ee8b9b  
     1xcopy %RECIPE_DIR%\bin %PREFIX%\DLLs /E 
     2xcopy %RECIPE_DIR%\include %PREFIX%\include /E 
     3xcopy %RECIPE_DIR%\lib %PREFIX%\libs /E 
     4 
     5xcopy %RECIPE_DIR%\bin %PREFIX%\Library\bin /E 
     6xcopy %RECIPE_DIR%\include %PREFIX%\Library\include /E 
     7xcopy %RECIPE_DIR%\lib %PREFIX%\Library\lib /E 
     8 
     9::"%PYTHON%" setup.py build -cmingw32 
     10"%PYTHON%" configure.py 
     11if errorlevel 1 exit 1 
     12"%PYTHON%" setup.py build 
     13if errorlevel 1 exit 1 
    114"%PYTHON%" setup.py install 
    215if errorlevel 1 exit 1 
  • sasview/setup_exe.py

    r61c93b3 rb9fc674  
    280280# Copying the images directory to the distribution directory. 
    281281for f in findall(images_dir): 
    282     if os.path.split(f)[0].count('.svn')==0: 
     282    if not ".svn" in f: 
    283283        data_files.append(("images", [f])) 
    284284 
    285285# Copying the HTML help docs 
    286286for f in findall(media_dir): 
    287     if os.path.split(f)[0].count('.svn')==0: 
     287    if not ".svn" in f: 
    288288        data_files.append(("media", [f])) 
    289289 
    290290# Copying the sample data user data 
    291291for f in findall(test_dir): 
    292     if os.path.split(f)[0].count('.svn')==0: 
     292    if not ".svn" in f: 
    293293        data_files.append(("test", [f])) 
    294          
     294 
     295# See if the documentation has been built, and if so include it. 
     296doc_path = os.path.join(build_path, "doc") 
     297if os.path.exists(doc_path): 
     298    for dirpath, dirnames, filenames in os.walk(doc_path): 
     299        for filename in filenames: 
     300            sub_dir = os.path.join("doc", os.path.relpath(dirpath, doc_path)) 
     301            data_files.append((sub_dir, [os.path.join(dirpath, filename)])) 
     302else: 
     303    raise Exception("You must first build the documentation before creating an installer.") 
     304 
    295305if py26MSdll != None: 
    296306    # install the MSVC 9 runtime dll's into the application folder 
  • src/sas/dataloader/manipulations.py

    r400155b rddc192a  
    623623        phi_values = numpy.zeros(self.nbins_phi) 
    624624        phi_err    = numpy.zeros(self.nbins_phi) 
    625          
    626         # Shift to apply to calculated phi values in order to center first bin at zero 
    627         phi_shift = Pi / self.nbins_phi 
     625     
     626        # Shift to apply to calculated phi values in order to center first bin at zero 
     627        phi_shift = Pi / self.nbins_phi 
    628628 
    629629        for npt in range(len(data)): 
  • src/sas/dataloader/readers/ascii_reader.py

    r79492222 ref3445e2  
    6767                    raise  RuntimeError, "ascii_reader: cannot open %s" % path 
    6868                buff = input_f.read() 
    69                 lines = buff.split('\n') 
    70                  
    71                 #Jae could not find python universal line spliter: 
    72                 #keep the below for now 
    73                 # some ascii data has \r line separator, 
    74                 # try it when the data is on only one long line 
    75                 if len(lines) < 2 : 
    76                     lines = buff.split('\r') 
     69                lines = buff.splitlines() 
    7770                  
    7871                x  = numpy.zeros(0) 
     
    8174                dx = numpy.zeros(0) 
    8275                 
    83                #temp. space to sort data 
     76                #temp. space to sort data 
    8477                tx  = numpy.zeros(0) 
    8578                ty  = numpy.zeros(0) 
     
    220213                                pass 
    221214                             
    222                         x = numpy.append(x, _x)  
     215                        x = numpy.append(x, _x) 
    223216                        y = numpy.append(y, _y) 
    224217                         
     
    294287                        i += 1 
    295288                    except: 
    296  
    297289                        # It is data and meet non - number, then stop reading 
    298290                        if is_data == True: 
  • test/sasdataloader/test/utest_averaging.py

    r35ec279 ref3445e2  
    105105        r = Ring(r_min=.005, r_max=.01,  
    106106                 center_x=self.data.detector[0].beam_center.x,  
    107                  center_y=self.data.detector[0].beam_center.y) 
    108         r.nbins_phi = 20 
     107                 center_y=self.data.detector[0].beam_center.y, 
     108                 nbins = 20) 
     109        ##r.nbins_phi = 20 
    109110         
    110111        o = r(self.data) 
    111112        answer = Loader().load('ring_testdata.txt') 
    112         for i in range(r.nbins_phi): 
    113             self.assertAlmostEqual(o.x[i], answer.x[i], 4) 
    114             self.assertAlmostEqual(o.y[i], answer.y[i], 4) 
    115             self.assertAlmostEqual(o.dy[i], answer.dy[i], 4) 
     113         
     114        for i in range(r.nbins_phi - 1): 
     115            self.assertAlmostEqual(o.x[i + 1], answer.x[i], 4) 
     116            self.assertAlmostEqual(o.y[i + 1], answer.y[i], 4) 
     117            self.assertAlmostEqual(o.dy[i + 1], answer.dy[i], 4) 
    116118             
    117119    def test_circularavg(self): 
     
    194196        import math 
    195197         
    196         r = SectorPhi(r_min=.005, r_max=.01, phi_min=0, phi_max=math.pi*2.0) 
    197         r.nbins_phi = 20 
     198        r = SectorPhi(r_min=.005, 
     199                      r_max=.01, 
     200                      phi_min=0.15707963, 
     201                      phi_max=math.pi*2.-0.15707963, 
     202                      nbins=19) 
    198203        o = r(self.data) 
    199204 
Note: See TracChangeset for help on using the changeset viewer.