Changeset 098f3d2 in sasview for src/sas/perspectives/fitting


Ignore:
Timestamp:
Jul 6, 2015 1:11:55 PM (9 years ago)
Author:
Doucet, Mathieu <doucetm@…>
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:
d3d67f0
Parents:
9989a6a
Message:

Remove print preview menu items. Fix 2D plotting from fit perspective.

Location:
src/sas/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/fitting/fitpage.py

    r60d08fd r098f3d2  
    22362236        """ 
    22372237        # compute weight for the current data 
    2238         from sas.perspectives.fitting.utils import get_weight 
    22392238        flag_weight = self.get_weight_flag() 
    22402239        if is_2D == None: 
    22412240            is_2D = self._is_2D() 
    2242         weight = get_weight(data=self.data, 
    2243                             is2d=is_2D, 
    2244                             flag=flag_weight) 
    22452241        self._manager.set_fit_weight(uid=self.uid, 
    22462242                                     flag=flag_weight, 
     
    22602256        self._update_paramv_on_fit() 
    22612257 
    2262         # msg default 
    2263         msg = None 
    22642258        if event != None: 
    22652259            tcrtl = event.GetEventObject() 
     
    22752269        # if any value is changed 
    22762270        if is_new_pinhole: 
    2277             msg = self._set_pinhole_smear() 
     2271            self._set_pinhole_smear() 
    22782272        # hide all silt sizer 
    22792273        self._hide_all_smear_info() 
  • src/sas/perspectives/fitting/fitting.py

    re1442d4 r098f3d2  
    516516        selected_data_list = [] 
    517517        if self.batch_on: 
    518             page = self.add_fit_page(data=data_list) 
     518            self.add_fit_page(data=data_list) 
    519519        else: 
    520520            if len(data_list) > MAX_NBR_DATA: 
     
    537537                        if group_id not in data.list_group_id: 
    538538                            data.list_group_id.append(group_id) 
    539                         page = self.add_fit_page(data=[data]) 
     539                        self.add_fit_page(data=[data]) 
    540540            except: 
    541                 msg = "Fitting Set_data: " + str(sys.exc_value) 
     541                msg = "Fitting set_data: " + str(sys.exc_value) 
    542542                wx.PostEvent(self.parent, StatusEvent(status=msg, info="error")) 
    543543 
     
    670670        :param weight: current dy data 
    671671        """ 
     672        # If we are not dealing with a specific fit problem, then 
     673        # there is no point setting the weights. 
     674        if fid is None: 
     675            return 
    672676        if uid in self.page_finder.keys(): 
    673677            self.page_finder[uid].set_weight(flag=flag, is2d=is2d) 
Note: See TracChangeset for help on using the changeset viewer.