Changeset b30ed8f in sasview


Ignore:
Timestamp:
Dec 22, 2011 1:42:07 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
494f151
Parents:
5c7cb6f
Message:

move plugin log to plugin_models dir

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/models.py

    r8ab3302 rb30ed8f  
    2323    """ 
    2424    """ 
    25     out = open("plugins.log", 'a') 
     25    dir = os.path.join(os.path.expanduser("~"),'.sansview', PLUGIN_DIR) 
     26    out = open(os.path.join(dir, "plugins.log"), 'a') 
    2627    out.write("%10g:  %s\n" % (time.clock(), message)) 
    2728    out.close() 
  • setup.py

    r8ab3302 rb30ed8f  
    77 
    88import sys 
     9 
    910import os 
    1011import platform 
     
    4142plugin_model_list = ['polynominal5.py', 'sph_bessel_jn.py',  
    4243                     'sum_Ap1_1_Ap2.py', 'sum_p1_p2.py',  
    43                      'testmodel_2.py', 'testmodel.py'] 
     44                     'testmodel_2.py', 'testmodel.py', 
     45                     'polynominal5.pyc', 'sph_bessel_jn.pyc',  
     46                     'sum_Ap1_1_Ap2.pyc', 'sum_p1_p2.pyc',  
     47                     'testmodel_2.pyc', 'testmodel.pyc'] 
    4448sans_dir = os.path.join(os.path.expanduser("~"),'.sansview') 
    4549if os.path.isdir(sans_dir): 
     
    5660                file_path =  os.path.join(f_path, file) 
    5761                os.remove(file_path) 
    58                      
     62 
     63enable_openmp = True                     
    5964if sys.argv[-1] == "-nomp": 
    6065    # Disable OpenMP 
    61     copt = {} 
    62     lopt = {} 
    63 else: 
    64     # Options to enable OpenMP 
    65     copt =  {'msvc': ['/openmp'], 
    66              'mingw32' : ['-fopenmp'], 
    67              'unix' : ['-fopenmp']} 
    68     lopt =  {'msvc': ['/MANIFEST'], 
    69              'mingw32' : ['-fopenmp'], 
    70              'unix' : ['-lgomp']} 
     66    enable_openmp = False 
     67if sys.platform =='darwin' and not is_64bits: 
     68    # Disable OpenMP 
     69    enable_openmp = False 
     70 
     71# Options to enable OpenMP 
     72copt =  {'msvc': ['/openmp'], 
     73         'mingw32' : ['-fopenmp'], 
     74         'unix' : ['-fopenmp']} 
     75lopt =  {'msvc': ['/MANIFEST'], 
     76         'mingw32' : ['-fopenmp'], 
     77         'unix' : ['-lgomp']} 
    7178 
    7279class build_ext_subclass( build_ext ): 
     
    8289        print "Compiling with %s (64bit=%s)" % (c, str(is_64bits)) 
    8390         
    84         if not (sys.platform =='darwin' and not is_64bits): 
     91        if enable_openmp: 
    8592            if copt.has_key(c): 
    8693               for e in self.extensions: 
    8794                   e.extra_compile_args = copt[ c ] 
    8895            if lopt.has_key(c): 
     96                 
    8997                for e in self.extensions: 
    9098                    e.extra_link_args = lopt[ c ] 
Note: See TracChangeset for help on using the changeset viewer.