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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.