Dialog panel to explore the P(r) inversion results for a range of D_max value. User picks a number of points and a range of distances, then can toggle between inversion outputs and see their distribution as a function of D_max.
Bases: wx._windows.Dialog
The explorer dialog box. This dialog is meant to be invoked by the InversionControl class.
Class that holds the content of the form
Not implemented
Bases: sas.plottools.PlotPanel.PlotPanel
Plot panel used to show the selected results as a function of D_max
Default context menu for the plot panel
TODO: | Would be nice to add printing and log/linear scales. The current verison of plottools no longer plays well with plots outside of guiframe. Guiframe team needs to fix this. |
---|
Class to hold the inversion output parameters as a function of D_max
Bases: wx._windows.Dialog
Bases: wx.lib.scrolledpanel.ScrolledPanel, sas.guiframe.panel_base.PanelBase
Get the current state
: return: state object
Resets inversion parameters
Method used to create a memento of the current state
Returns: | state object |
---|
Set the state of the panel and inversion problem to the state passed as a parameter. Execute the inversion immediately after filling the controls.
Parameters: | state – InversionState object |
---|
Bases: wx._windows.Dialog
Property dialog to let the user change the number of points on the P(r) plot.
Return the content of the dialog. At this point the values have already been checked.
Initialize the content of the dialog.
Handling of P(r) inversion states
Bases: object
Class to hold the state information of the InversionControl panel.
Load a P(r) inversion state from a file
Parameters: |
|
---|
Writes the state of the InversionControl panel to file, as XML.
Compatible with standalone writing, or appending to an already existing XML document. In that case, the XML document is required. An optional entry node in the XML document may also be given.
Parameters: |
|
---|
Bases: sas.dataloader.readers.cansas_reader.Reader
Class to load a .prv P(r) inversion file
Load a new P(r) inversion state from file
Parameters: | path – file path |
---|---|
Returns: | None |
Write the content of a Data1D as a CanSAS XML file
Parameters: |
|
---|
Write toXML, a helper for write()
: return: xml doc
Bases: sas.guiframe.plugin_base.PluginBase
P(r) inversion perspective
delete the data association with prview
Get the context menu items available for P(r)
Parameters: | graph – the Graph object to which we attach the context menu |
---|---|
Returns: | a list of menu items with call-back function |
Returns the current data
Returns the number of points in the I(q) data
Create and return a list of panel objects
Show a general help dialog.
TODO: | replace the text with a nice image |
---|
Load data. This will eventually be replaced by our standard DataLoader class.
Load an IGOR .ABS reduced file
Parameters: | path – file path |
---|---|
Returns: | x, y, err vectors |
Load 2- or 3- column ascii
Post initialization call back to close the loose ends [Somehow openGL needs this call]
Return P(r) of a sphere for a given R For test purposes
Save data in provided state object.
TODO: | move the state code away from inversion_panel and move it here. Then remove the “prstate” input and make this method private. |
---|---|
Parameters: |
|
receive a list of data to compute pr
Call-back method for the inversion state reader. This method is called when a .prv file is loaded.
Parameters: |
|
---|
Show data read from a file
Parameters: |
|
---|
Bases: sas.data_util.calcthread.CalcThread
Compute P(r)
Perform P(r) inversion
Bases: sas.data_util.calcthread.CalcThread
Calculates the estimate
Bases: sas.data_util.calcthread.CalcThread
Estimate P(r)
Calculates the estimate
Text controls for input/output of the main PrView panel
Bases: wx._windows.Dialog
Allow file selection at loading time
return the selected data
Bases: sas.perspectives.pr.pr_widgets.OutputTextCtrl
Text control used to display only the file name given a full path.
TODO: | now that we no longer choose the data file from the panel, it’s no longer necessary to pass around the file path. That code should be refactored away and simplified. |
---|
Return the full path
Sets the file name given a path
Bases: wx.lib.scrolledpanel.ScrolledPanel
Bases: wx._controls.TextCtrl
Text control used to display outputs. No editing allowed. The background is grayed out. User can’t select text.
Bases: wx._controls.TextCtrl
Text control for model and fit parameters. Binds the appropriate events for user interactions.
Pop up an error message.
Parameters: | error – details error message to be displayed |
---|