Changeset f21d496 in sasview for src/sas/perspectives/pr
- Timestamp:
- Jul 2, 2015 11:13:55 AM (10 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:
- 78f75d02
- Parents:
- 3a5f7c8
- Location:
- src/sas/perspectives/pr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/pr/inversion_panel.py
r3db44fb rf21d496 35 35 oscillation_max = 1.5 36 36 37 def __init__(self, parent, id=-1, plots=None, standalone=False,**kwargs):37 def __init__(self, parent, id=-1, plots=None, **kwargs): 38 38 """ 39 39 """ … … 83 83 ## Data manager 84 84 self._manager = None 85 ## Standalone flage86 self.standalone = standalone87 85 ## Default file location for save 88 86 self._default_save_location = os.getcwd() -
src/sas/perspectives/pr/pr.py
rc1c14ba rf21d496 54 54 DEFAULT_DMAX = 140.0 55 55 56 def __init__(self , standalone=True):57 PluginBase.__init__(self, name="Pr Inversion" , standalone=standalone)56 def __init__(self): 57 PluginBase.__init__(self, name="Pr Inversion") 58 58 ## Simulation window manager 59 59 self.simview = None … … 94 94 ## Number of P(r) points to display on the output plot 95 95 self._pr_npts = 51 96 ## Flag to let the plug-in know that it is running standalone97 self.standalone = standalone98 96 self._normalize_output = False 99 97 self._scale_output_unity = False … … 623 621 return [] 624 622 elif item.id == graph.selected_plottable: 625 if not self.standalone andissubclass(item.__class__, Data1D):623 if issubclass(item.__class__, Data1D): 626 624 return [["Compute P(r)", 627 625 "Compute P(r) from distribution", … … 1238 1236 self.frame = MDIFrame(self.parent, None, 'None', (100, 200)) 1239 1237 self.control_panel = InversionControl(self.frame, -1, 1240 style=wx.RAISED_BORDER, 1241 standalone=self.standalone) 1238 style=wx.RAISED_BORDER) 1242 1239 self.frame.set_panel(self.control_panel) 1243 1240 self._frame_set_helper() … … 1317 1314 [Somehow openGL needs this call] 1318 1315 """ 1319 if self.standalone: 1320 self.parent.set_perspective(self.perspective) 1316 pass
Note: See TracChangeset
for help on using the changeset viewer.