Changes in src/sas/perspectives/pr/pr.py [c1c14ba:f21d496] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.