Changes in / [cb9640f:93b34cc] in sasview


Ignore:
Location:
src/sas
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/file_reader_base_class.py

    rfee520ec r4a8d55c  
    276276                    dataset.xmax = np.max(dataset.qx_data) 
    277277                    dataset.ymin = np.min(dataset.qy_data) 
    278                     dataset.ymax = np.max(dataset.qy_data) 
     278                    dataset.ymax = np.max(dataset.qx_data) 
    279279 
    280280    def format_unit(self, unit=None): 
  • src/sas/sasgui/perspectives/calculator/model_editor.py

    r1752f38 r9bf40e7  
    965965        out_f.write('    """Absolute scattering"""\n') 
    966966        if "scipy." in func_str: 
    967             out_f.write('    import scipy\n') 
     967            out_f.write('    import scipy') 
    968968        if "numpy." in func_str: 
    969             out_f.write('    import numpy\n') 
     969            out_f.write('    import numpy') 
    970970        if "np." in func_str: 
    971             out_f.write('    import numpy as np\n') 
     971            out_f.write('    import numpy as np') 
    972972        for func_line in func_str.split('\n'): 
    973973            out_f.write('%s%s\n' % ('    ', func_line)) 
  • src/sas/sasgui/perspectives/fitting/fitting.py

    ra5cffe5 raba4559  
    776776        :param weight: current dy data 
    777777        """ 
    778         # Note: this is used to set the data weights for the fit based on 
    779         # the weight selection in the GUI. 
     778        # If we are not dealing with a specific fit problem, then 
     779        # there is no point setting the weights. 
     780        if fid is None: 
     781            return 
    780782        if uid in self.page_finder.keys(): 
    781783            self.page_finder[uid].set_weight(flag=flag, is2d=is2d) 
  • src/sas/sasgui/perspectives/fitting/gpu_options.py

    r895703d r8e109f9  
    2323import sasmodels 
    2424import sasmodels.model_test 
    25 import sasmodels.sasview_model 
     25import sasmodels.kernelcl 
    2626 
    2727from sas.sasgui.guiframe.documentation_window import DocumentationWindow 
     
    239239            if "SAS_OPENCL" in os.environ: 
    240240                del os.environ["SAS_OPENCL"] 
    241         sasmodels.sasview_model.reset_environment() 
     241        sasmodels.kernelcl.reset_environment() 
    242242        event.Skip() 
    243243 
     
    265265            if "SAS_OPENCL" in os.environ: 
    266266                del os.environ["SAS_OPENCL"] 
    267         sasmodels.sasview_model.reset_environment() 
     267        sasmodels.kernelcl.reset_environment() 
    268268 
    269269        try: 
Note: See TracChangeset for help on using the changeset viewer.