Changes in / [9b7c596:ab06de7] in sasview


Ignore:
Files:
15 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rdf332d8 re04f87b  
    88# generated. 
    99# 
    10 # Feel free to add more stuff to this as and when it becomes an issue. 
     10# Feel free to add more stuff to this as and when it becomes an issue.  
    1111 
    1212.project 
     
    5050/test/sasdataloader/test/plugins.zip 
    5151/test/sasdataloader/test/test_log.txt 
    52 /test/sasdataloader/test/isis_1_0_write_test.xml 
    53 /test/sasdataloader/test/isis_1_1_write_test.xml 
    54 /test/sasdataloader/test/write_test.xml 
    5552 
    5653# autogenerated scripts 
    5754/sasview/installer.iss 
     55 
  • docs/sphinx-docs/source/user/tools.rst

    reb8da5f r8f46df7  
    88 
    99   Data Operations Utility <sasgui/perspectives/calculator/data_operator_help> 
    10  
     10       
    1111   Density/Volume Calculator <sasgui/perspectives/calculator/density_calculator_help> 
    12  
     12    
    1313   Generic SANS Calculator <sasgui/perspectives/calculator/sas_calculator_help> 
    14  
     14    
    1515   Image Viewer <sasgui/perspectives/calculator/image_viewer_help> 
    16  
     16    
    1717   Kiessig Thickness Calculator <sasgui/perspectives/calculator/kiessig_calculator_help> 
    18  
     18    
    1919   SLD Calculator <sasgui/perspectives/calculator/sld_calculator_help> 
    20  
     20    
    2121   Slit Size Calculator <sasgui/perspectives/calculator/slit_calculator_help> 
    22  
     22    
    2323   Q Resolution Estimator <sasgui/perspectives/calculator/resolution_calculator_help> 
    24  
     24    
    2525   Python Shell <sasgui/perspectives/calculator/python_shell_help> 
    26  
    27    File Converter <sasgui/perspectives/file_converter/file_converter_help> 
     26    
  • run.py

    r18e7309 r832fea2  
    7272    platform = '%s-%s'%(get_platform(),sys.version[:3]) 
    7373    build_path = joinpath(root, 'build','lib.'+platform) 
    74  
    75     # Notify the help menu that the Sphinx documentation is in a different 
     74     
     75    # Notify the help menu that the Sphinx documentation is in a different  
    7676    # place than it otherwise would be. 
    7777    os.environ['SASVIEW_DOC_PATH'] = joinpath(build_path, "doc") 
     
    123123    # Compiled modules need to be pulled from the build directory. 
    124124    # Some packages are not where they are needed, so load them explicitly. 
    125     import sas.sascalc.file_converter 
    126     sas.sascalc.file_converter.core = import_package('sas.sascalc.file_converter.core', 
    127                                   joinpath(build_path, 'sas', 'sascalc', 'file_converter', 'core'))                     
    128  
    129     # Compiled modules need to be pulled from the build directory. 
    130     # Some packages are not where they are needed, so load them explicitly. 
    131125    import sas.sascalc.calculator 
    132126    sas.sascalc.calculator.core = import_package('sas.sascalc.calculator.core', 
  • sasview/sasview.py

    r77d92cd r1be5202  
    8181#Always use private .matplotlib setup to avoid conflicts with other 
    8282#uses of matplotlib 
    83 #Have to check if .sasview exists first 
     83#Have to check if .sasview exists first  
    8484sasdir = os.path.join(os.path.expanduser("~"),'.sasview') 
    8585if not os.path.exists(sasdir): 
     
    119119        # Fitting perspective 
    120120        try: 
    121             import sas.sasgui.perspectives.fitting as module 
     121            import sas.sasgui.perspectives.fitting as module     
    122122            fitting_plug = module.Plugin() 
    123123            self.gui.add_perspective(fitting_plug) 
     
    145145            logging.error(traceback.format_exc()) 
    146146 
    147         #Calculator perspective 
     147        #Calculator perspective    
    148148        try: 
    149149            import sas.sasgui.perspectives.calculator as module 
     
    152152        except: 
    153153            logging.error("%s: could not find Calculator plug-in module"% \ 
    154                                                         APP_NAME) 
    155             logging.error(traceback.format_exc()) 
    156  
    157         # File converter tool 
    158         try: 
    159             import sas.sasgui.perspectives.file_converter as module 
    160             converter_plug = module.Plugin() 
    161             self.gui.add_perspective(converter_plug) 
    162         except: 
    163             logging.error("%s: could not find File Converter plug-in module"% \ 
    164154                                                        APP_NAME) 
    165155            logging.error(traceback.format_exc()) 
     
    201191if __name__ == "__main__": 
    202192    run() 
     193 
  • setup.py

    r18e7309 rdb74ee8  
    99from distutils.command.build_ext import build_ext 
    1010from distutils.core import Command 
    11 import numpy 
    1211 
    1312# Manage version number ###################################### 
     
    5554        print "Removing existing build directory", SASVIEW_BUILD, "for a clean build" 
    5655        shutil.rmtree(SASVIEW_BUILD) 
    57  
     56                     
    5857# 'sys.maxsize' and 64bit: Not supported for python2.5 
    5958is_64bits = False 
    6059if sys.version_info >= (2, 6): 
    6160    is_64bits = sys.maxsize > 2**32 
    62  
     61     
    6362enable_openmp = False 
    6463 
     
    119118        c = self.compiler.compiler_type 
    120119        print "Compiling with %s (64bit=%s)" % (c, str(is_64bits)) 
    121  
     120         
    122121        # OpenMP build options 
    123122        if enable_openmp: 
     
    128127                for e in self.extensions: 
    129128                    e.extra_link_args = lopt[ c ] 
    130  
     129                     
    131130        # Platform-specific build options 
    132131        if platform_lopt.has_key(c): 
     
    206205) 
    207206 
    208  
     207     
    209208# sas.sascalc.pr 
    210209srcdir  = os.path.join("src", "sas", "sascalc", "pr", "c_extensions") 
     
    218217                              include_dirs=[], 
    219218                              ) ) 
    220  
    221 # sas.sascalc.file_converter 
    222 mydir = os.path.join("src", "sas", "sascalc", "file_converter", "c_ext") 
    223 package_dir["sas.sascalc.file_converter.core"] = mydir 
    224 package_dir["sas.sascalc.file_converter"] = os.path.join("src","sas", "sascalc", "file_converter") 
    225 packages.extend(["sas.sascalc.file_converter","sas.sascalc.file_converter.core"]) 
    226 ext_modules.append( Extension("sas.sascalc.file_converter.core.bsl_loader", 
    227                               sources = [os.path.join(mydir, "bsl_loader.c")], 
    228                               include_dirs=[numpy.get_include()], 
    229                               ) ) 
    230  
     219         
    231220# sas.sascalc.fit 
    232221package_dir["sas.sascalc.fit"] = os.path.join("src", "sas", "sascalc", "fit") 
     
    250239packages.extend(["sas.sasgui.perspectives", "sas.sasgui.perspectives.calculator"]) 
    251240package_data['sas.sasgui.perspectives.calculator'] = ['images/*', 'media/*'] 
    252  
     241     
    253242# Data util 
    254243package_dir["sas.sascalc.data_util"] = os.path.join("src", "sas", "sascalc", "data_util") 
     
    305294                               'test/2d_data/*', 
    306295                               'test/save_states/*', 
    307                                'test/upcoming_formats/*', 
     296                               'test/upcoming_formats/*',  
    308297                                 'default_categories.json'] 
    309298packages.append("sas.sasview") 
     
    327316    required.extend(['pillow']) 
    328317 
    329 # Set up SasView 
     318# Set up SasView     
    330319setup( 
    331320    name="sasview", 
     
    352341                'docs': BuildSphinxCommand, 
    353342                'disable_openmp': DisableOpenMPCommand} 
    354     ) 
     343    )    
  • src/sas/sascalc/dataloader/readers/cansas_reader.py

    r83b6408 r83b6408  
    957957            written = written | self.write_node(pix, "z", item.pixel_size.z, 
    958958                                                {"unit": item.pixel_size_unit}) 
     959            written = written | self.write_node(det, "slit_length", 
     960                                                item.slit_length, 
     961                                                {"unit": item.slit_length_unit}) 
    959962            if written == True: 
    960963                self.append(pix, det) 
    961             self.write_node(det, "slit_length", item.slit_length, 
    962                 {"unit": item.slit_length_unit}) 
    963  
    964964 
    965965    def _write_process_notes(self, datainfo, entry_node): 
Note: See TracChangeset for help on using the changeset viewer.