Ignore:
Timestamp:
Jan 4, 2013 3:34:17 PM (12 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:
d5df537
Parents:
4726f7c
Message:

minor bg unit correction for pdb data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py

    r077207b r3cfa760  
    509509        self.browse_button.SetLabel('Load') 
    510510        try: 
     511            is_pdbdata = False 
    511512            filename = data.filename 
    512513            self.data_name_tcl.SetValue(str(filename)) 
     
    521522            elif self.ext in self.pdbreader.ext: 
    522523                self.sld_data = data 
     524                is_pdbdata = True 
    523525                #omf_data = None 
    524526            else: 
    525527                raise 
     528            for name, _, unit in  self.parameters: 
     529                if name.GetLabelText() == 'background': 
     530                    if is_pdbdata: 
     531                        unit.SetLabel('[A^(2)]') 
     532                    else: 
     533                        unit.SetLabel('[1/cm]') 
     534                    break 
    526535            self._set_sld_data_helper(True) 
    527536        except: 
     
    547556        self.model.set_sld_data(self.sld_data) 
    548557        self.draw_button.Enable(self.sld_data!=None) 
    549         #self.parent.set_omfdata(self.sld_data)#omf_data) 
    550         self.model.set_sld_data(self.sld_data)  
    551558        wx.CallAfter(self.parent.set_sld_data, self.sld_data) 
    552559        if is_draw: 
Note: See TracChangeset for help on using the changeset viewer.