Changeset 3cfa760 in sasview for calculatorview/src
- Timestamp:
- Jan 4, 2013 1:34:17 PM (12 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
r077207b r3cfa760 509 509 self.browse_button.SetLabel('Load') 510 510 try: 511 is_pdbdata = False 511 512 filename = data.filename 512 513 self.data_name_tcl.SetValue(str(filename)) … … 521 522 elif self.ext in self.pdbreader.ext: 522 523 self.sld_data = data 524 is_pdbdata = True 523 525 #omf_data = None 524 526 else: 525 527 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 526 535 self._set_sld_data_helper(True) 527 536 except: … … 547 556 self.model.set_sld_data(self.sld_data) 548 557 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)551 558 wx.CallAfter(self.parent.set_sld_data, self.sld_data) 552 559 if is_draw:
Note: See TracChangeset
for help on using the changeset viewer.